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:
|
||
---|---|---|
.. | ||
alignedmem.c | ||
arm32-stub.c | ||
arm64-stub.c | ||
efi-stub-helper.c | ||
efi-stub.c | ||
efistub.h | ||
fdt.c | ||
file.c | ||
gop.c | ||
Makefile | ||
mem.c | ||
pci.c | ||
random.c | ||
randomalloc.c | ||
relocate.c | ||
riscv-stub.c | ||
secureboot.c | ||
skip_spaces.c | ||
string.c | ||
tpm.c | ||
vsprintf.c | ||
x86-stub.c |