[PATCH v2 0/2] efi_loader: fix building aarch64 EFI binaries
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Wed Jan 4 12:44:33 CET 2023
While our EFI binaries execute without problems on EDK II they crash on
a Lenovo X13s. Let our binaries look more like what EDK II produces:
* move all writable data to a .data section
* align sections to 4 KiB boundaries (matching EFI page size)
* remove IMAGE_SCN_LNK_NRELOC_OVFL from .reloc section flags
Provide constants for the section flags used by binaries.
v2:
use constants for section flags
remove IMAGE_SCN_LNK_NRELOC_OVFL from .reloc section flags
Heinrich Schuchardt (2):
efi_loader: defines for PE-COFF section flags
efi_loader: fix building aarch64 EFI binaries
arch/arm/lib/crt0_aarch64_efi.S | 48 +++++++++++++++++++++++---------
arch/arm/lib/elf_aarch64_efi.lds | 6 ++--
include/asm-generic/pe.h | 13 +++++++++
3 files changed, 52 insertions(+), 15 deletions(-)
--
2.37.2
More information about the U-Boot
mailing list