public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 0/2] efi_loader: fix building aarch64 EFI binaries
@ 2023-01-04 11:44 Heinrich Schuchardt
  2023-01-04 11:44 ` [PATCH v2 1/2] efi_loader: defines for PE-COFF section flags Heinrich Schuchardt
  2023-01-04 11:44 ` [PATCH v2 2/2] efi_loader: fix building aarch64 EFI binaries Heinrich Schuchardt
  0 siblings, 2 replies; 5+ messages in thread
From: Heinrich Schuchardt @ 2023-01-04 11:44 UTC (permalink / raw)
  To: Ilias Apalodimas; +Cc: u-boot, Heinrich Schuchardt

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-04 12:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-04 11:44 [PATCH v2 0/2] efi_loader: fix building aarch64 EFI binaries Heinrich Schuchardt
2023-01-04 11:44 ` [PATCH v2 1/2] efi_loader: defines for PE-COFF section flags Heinrich Schuchardt
2023-01-04 11:58   ` Ilias Apalodimas
2023-01-04 11:44 ` [PATCH v2 2/2] efi_loader: fix building aarch64 EFI binaries Heinrich Schuchardt
2023-01-04 12:01   ` Ilias Apalodimas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox