x86: move .text.kexec
authorJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 13:43:58 +0000 (14:43 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 13:43:58 +0000 (14:43 +0100)
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 <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/xen.lds.S

index ca22e984f80752adf70f0e2917f63b0c18a1855b..82ad8feb6e991a9e66924763d7012820c379ebbd 100644 (file)
@@ -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