Hi Simon, On Sun, Nov 20, 2016 at 4:25 AM, Simon Glass <s...@chromium.org> wrote: > Add a link script and relocation code for building 64-bit EFI applications. > This can be used for the EFI stub. > > Signed-off-by: Simon Glass <s...@chromium.org> > --- > > Changes in v2: None > > arch/x86/lib/elf_x86_64_efi.lds | 3 ++ > arch/x86/lib/reloc_x86_64.c | 90 > +++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 93 insertions(+) > create mode 100644 arch/x86/lib/reloc_x86_64.c > > diff --git a/arch/x86/lib/elf_x86_64_efi.lds b/arch/x86/lib/elf_x86_64_efi.lds > index 70c7c52..886ebef 100644 > --- a/arch/x86/lib/elf_x86_64_efi.lds > +++ b/arch/x86/lib/elf_x86_64_efi.lds > @@ -54,6 +54,9 @@ SECTIONS > *(SORT(.u_boot_list*)); > . = ALIGN(8); > *(.dtb*); > + /* Keep U-Boot payload */ > + . = ALIGN(8); > + KEEP(*(.u_boot_bin.*)); > } > > . = ALIGN(4096); > diff --git a/arch/x86/lib/reloc_x86_64.c b/arch/x86/lib/reloc_x86_64.c > new file mode 100644 > index 0000000..70a2b2a > --- /dev/null > +++ b/arch/x86/lib/reloc_x86_64.c
reloc_x86_64.c is already in the mainline tree. > @@ -0,0 +1,90 @@ [snip] Regards, Bin _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot