Even if this section is discardable, it still needs to have virtual memory size aligned on section alignment to be compliant. Align compat section on section alignment. This adds ~4k of memory after the kernel image during EFISTUB execution but, it's not a problem on x86 architecture. Signed-off-by: Evgeniy Baskov <baskov@xxxxxxxxx> --- arch/x86/boot/header.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S index 097b84ab288c..128e35f5c89b 100644 --- a/arch/x86/boot/header.S +++ b/arch/x86/boot/header.S @@ -184,7 +184,7 @@ section_table: #ifdef CONFIG_EFI_MIXED .asciz ".compat" - .long 8 # VirtualSize + .long pecompat_vsize # VirtualSize .long setup_size + ZO__end # VirtualAddress .long pecompat_fsize # SizeOfRawData .long pecompat_fstart # PointerToRawData -- 2.43.0