Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c44551d authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Kees Cook
Browse files

UPSTREAM: arm64/efi: set PE/COFF file alignment to 512 bytes



Change our PE/COFF header to use the minimum file alignment of
512 bytes (0x200), as mandated by the PE/COFF spec v8.3

Also update the linker script so that the Image file itself is also a
round multiple of FileAlignment.

Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Acked-by: default avatarRoy Franz <roy.franz@linaro.org>
Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>

(cherry picked from commit a352ea3e197b3aa74deb51728b050cd4a0c6105a)
Signed-off-by: default avatarTomasz Figa <tfiga@chromium.org>

Bug: 24475017

Change-Id: Ia9ae614f5004a7bee2254e3813d5b24d95bcff99
Signed-off-by: default avatarKees Cook <keescook@google.com>
parent 52982d2b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment