]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Align EFI image sections by page size
authorMarvin Häuser <mhaeuser@posteo.de>
Thu, 8 Apr 2021 18:04:16 +0000 (20:04 +0200)
committerMichael Brown <mcb30@ipxe.org>
Sat, 10 Apr 2021 12:43:47 +0000 (13:43 +0100)
commitf1e9e2b062fab46a6e3aec1f08d4554dd5dd2b98
tree46210b293db4dbe620b6941163fdf41c58be01c4
parent1cc87565110014205f647fd413f897a1a5a04b22
[efi] Align EFI image sections by page size

For optimal memory permission management, PE sections need to be
aligned by the platform's minimum page size.  Currently, the PE
section alignment is fixed to 32 bytes, which is below the typical 4kB
page size.  Align all sections to 4kB and adjust ELF to PE image
conversion accordingly.

Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
src/scripts/efi.lds
src/util/elf2efi.c