]> git.baikalelectronics.ru Git - uboot.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)
commit3586b627221d2f3c49aad92b49d53808e29f0829
tree8bb269a7c2447e321e560f0e8660135fb0e419df
parent2c00d0071a12d3a64b96e340d44591edd1673bd2
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