[U-Boot] [PATCH v2 12/63] x86: Add basic support for U-Boot as a 64-bit EFI application
Bin Meng
bmeng.cn at gmail.com
Mon Dec 19 08:58:55 CET 2016
Hi Simon,
On Sun, Nov 20, 2016 at 4:25 AM, Simon Glass <sjg at 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 <sjg at 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
More information about the U-Boot
mailing list