From: Jan Beulich Date: Fri, 18 Feb 2022 13:43:58 +0000 (+0100) Subject: x86: move .text.kexec X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~1012 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0e07d47048e4de9894a52e55972fc86714c4bf16;p=xen.git x86: move .text.kexec The source file requests page alignment - avoid a padding hole by placing it right after .text.entry. On average this yields a .text size reduction of 2k. Requested-by: Andrew Cooper Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index ca22e984f8..82ad8feb6e 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -83,10 +83,11 @@ SECTIONS . = ALIGN(PAGE_SIZE); _etextentry = .; + *(.text.kexec) /* Page aligned in the object file. */ + *(.text.cold) *(.text.unlikely) *(.fixup) - *(.text.kexec) *(.gnu.warning) _etext = .; /* End of text section */ } PHDR(text) = 0x9090