]> xenbits.xensource.com Git - xen.git/commitdiff
xen: arm: include .text.cold and .text.unlikely in text area
authorIan Campbell <ian.campbell@citrix.com>
Mon, 9 Jun 2014 14:28:12 +0000 (15:28 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 10 Jun 2014 10:16:29 +0000 (11:16 +0100)
Otherwise functions in these sections can end up between .text and .rodata
which is after _etext and therefore gets made non-executable.

This matches x86 (although it was done there for different reasons).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Cc: Jan Beulich <JBeulich@suse.com>
xen/arch/arm/xen.lds.S

index e8b4f47f7bcd2a1e51d9aa3555aa0b8cc5c8e755..be55dad4daa5db7636cc5737f35a774ebf56227a 100644 (file)
@@ -30,6 +30,8 @@ SECTIONS
   .text : /* XXX should be AT ( XEN_PHYS_START ) */ {
         _stext = .;            /* Text section */
        *(.text)
+       *(.text.cold)
+       *(.text.unlikely)
        *(.fixup)
        *(.gnu.warning)
        _etext = .;             /* End of text section */