diff options
author | Mihai Carabas <mihai.carabas@oracle.com> | 2022-01-19 18:14:27 +0200 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2022-01-23 10:31:27 +0100 |
commit | e9b7c3a4263bdcfd31bc3d03d48ce0ded7a94635 (patch) | |
tree | 86c262e236345c481836b51355ce7ddc6a0f7744 /arch/mips/kernel/scall32-o32.S | |
parent | e783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff) |
efi/libstub: arm64: Fix image check alignment at entry
The kernel is aligned at SEGMENT_SIZE and this is the size populated in the PE
headers:
arch/arm64/kernel/efi-header.S: .long SEGMENT_ALIGN // SectionAlignment
EFI_KIMG_ALIGN is defined as: (SEGMENT_ALIGN > THREAD_ALIGN ? SEGMENT_ALIGN :
THREAD_ALIGN)
So it depends on THREAD_ALIGN. On newer builds this message started to appear
even though the loader is taking into account the PE header (which is stating
SEGMENT_ALIGN).
Fixes: c32ac11da3f8 ("efi/libstub: arm64: Double check image alignment at entry")
Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'arch/mips/kernel/scall32-o32.S')
0 files changed, 0 insertions, 0 deletions