grub2/include/grub/efi
Alexander Graf a51f953f4e mkimage: Align efi sections on 4k boundary
There is UEFI firmware popping up in the wild now that implements stricter
permission checks using NX and write protect page table entry bits.

This means that firmware now may fail to load binaries if its individual
sections are not page aligned, as otherwise it can not ensure permission
boundaries.

So let's bump all efi section alignments up to 4k (EFI page size). That way
we will stay compatible going forward.

Unfortunately our internals can't deal very well with a mismatch of alignment
between the virtual and file offsets, so we have to also pad our target
binary a bit.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Tested-by: Julien ROBIN <julien.robin28@free.fr>
2019-02-06 11:34:50 +01:00
..
api.h lsefimmap: support persistent memory and other UEFI 2.5 features 2015-12-17 21:00:44 +03:00
console_control.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
console.h 2008-09-24 Robert Millan <rmh@aybabtu.com> 2008-09-24 10:17:56 +00:00
disk.h 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> 2007-07-21 23:32:33 +00:00
edid.h Use EDID on EFI. 2012-03-04 00:48:21 +01:00
efi.h arm/efi: Switch to arm64 linux loader 2018-07-25 14:18:11 +02:00
fdtload.h arm64/efi: move EFI_PAGE definitions to efi/memory.h 2018-02-23 22:42:42 +01:00
graphics_output.h * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode. 2012-05-26 13:33:34 +02:00
memory.h arm64/efi: move EFI_PAGE definitions to efi/memory.h 2018-02-23 22:42:42 +01:00
pci.h * include/grub/efi/pci.h: New file to define EFI PCI protocols. 2012-02-27 11:42:23 +01:00
pe32.h mkimage: Align efi sections on 4k boundary 2019-02-06 11:34:50 +01:00
tpm.h verifiers: Core TPM support 2018-12-12 14:51:26 +01:00
uga_draw.h * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ... 2010-06-11 22:15:35 +01:00