
5 Aug
2015
5 Aug
'15
8:03 p.m.
On 4 August 2015 at 12:33, Simon Glass sjg@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@chromium.org Improvements to how the payload is built: Signed-off-by: Bin Meng bmeng.cn@gmail.com Reviewed-by: Bin Meng bmeng.cn@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.