[U-Boot] [PATCH v3 13/28] x86: Add relocation and link script for a 64-bit EFI application

Simon Glass sjg at chromium.org
Wed Aug 5 20:03:11 CEST 2015


On 4 August 2015 at 12:33, Simon Glass <sjg at chromium.org> wrote:
> Add a linker 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>
> Improvements to how the payload is built:
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> Changes in v3:
> - Use "BSD-2-Clause" for the SPDX license
>
> Changes in v2:
> - Add a comment as to why .hash has to be first in the linker script
> - Change 'link script' to 'linker script'
> - Drop . = 0x0;
> - Fix reference to elf_ia32_efi instead of elf_x86_64_efi
> - Merge in Bin's implementation of adding a U-Boot payload with objcopy
> - Remove KEEP in the EFI linker script since garbage collection is not enabled
> - Rename ImageBase to image_base
> - Update based on the elf.h changes
>
>  arch/x86/cpu/efi/elf_x86_64_efi.lds | 83 +++++++++++++++++++++++++++++++++++++
>  arch/x86/lib/efi/reloc_x86_64.c     | 66 +++++++++++++++++++++++++++++
>  2 files changed, 149 insertions(+)
>  create mode 100644 arch/x86/cpu/efi/elf_x86_64_efi.lds
>  create mode 100644 arch/x86/lib/efi/reloc_x86_64.c

Applied to u-boot-x86.


More information about the U-Boot mailing list