[PATCH 2/2] x86/boot: Align .compat virtual size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux