]> xenbits.xensource.com Git - xen.git/commitdiff
x86: put kexec_reloc in its own section
authorJan Beulich <jbeulich@suse.com>
Fri, 18 Mar 2016 08:50:12 +0000 (09:50 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Mar 2016 08:50:12 +0000 (09:50 +0100)
Since it wants to be page aligned, this alignment would force pointless
alignment of .text in the intermediate built_in.o file(s), needlessly
growing the overall text and binary size.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: David Vrabel <david.vrabel@citrix.com>
xen/arch/x86/x86_64/kexec_reloc.S
xen/arch/x86/xen.lds.S

index 7a16c8569feb0f939f7b045309e5df64f60548be..85ab602af5341422e1fc59fcdbabc7a9c79954dd 100644 (file)
@@ -18,7 +18,7 @@
 #include <asm/page.h>
 #include <asm/machine_kexec.h>
 
-        .text
+        .section .text.kexec, "ax", @progbits
         .align PAGE_SIZE
         .code64
 
index 961f48f780f8439189653bb0106533d599ee9d66..e47771cec1da9d2767905844d3b1e760d9f2c95d 100644 (file)
@@ -49,6 +49,7 @@ SECTIONS
        *(.text.cold)
        *(.text.unlikely)
        *(.fixup)
+       *(.text.kexec)
        *(.gnu.warning)
        _etext = .;             /* End of text section */
   } :text = 0x9090