]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: fix building aarch64 EFI binaries
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 31 Dec 2022 10:58:54 +0000 (11:58 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 4 Jan 2023 12:17:42 +0000 (13:17 +0100)
commitd7ddeb66a6ce55672ba89496c621fbfc9465b4c2
tree8bb269a7c2447e321e560f0e8660135fb0e419df
parent673a92c5d2c2b6dbcc5b530b0b1215db7afb8188
efi_loader: fix building aarch64 EFI binaries

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

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
arch/arm/lib/crt0_aarch64_efi.S
arch/arm/lib/elf_aarch64_efi.lds