Skip to contentSkip to conversation

x86: merge .text.* into .text while linking

PATCH In review Jan Beulich 2 participants 2 messages May 7, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: merge .text.* into .text while linking

For xen.efi, this eliminates a pointless gap between .text and .text.unlikely of almost 2Mb size.

xen/arch/x86/xen.lds.S +2 -0
@@ -47,6 +47,8 @@ SECTIONS
   .text : {
         _stext = .;            /* Text and read-only data */
        *(.text)
+       *(.text.cold)
+       *(.text.unlikely)
        *(.fixup)
        *(.gnu.warning)
        _etext = .;             /* End of text section */

x86: merge .text.* into .text while linking

For xen.efi, this eliminates a pointless gap between .text and .text.unlikely of almost 2Mb size.

xen/arch/x86/xen.lds.S +2 -0
@@ -47,6 +47,8 @@ SECTIONS
   .text : {
         _stext = .;            /* Text and read-only data */
        *(.text)
+       *(.text.cold)
+       *(.text.unlikely)
        *(.fixup)
        *(.gnu.warning)
        _etext = .;             /* End of text section */

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Jan Beulich

For xen.efi, this eliminates a pointless gap between .text and .text.unlikely of almost 2Mb size.

Quoted 18 lines
xen/arch/x86/xen.lds.S +2 -0
@@ -47,6 +47,8 @@ SECTIONS
   .text : {
         _stext = .;            /* Text and read-only data */
        *(.text)
+       *(.text.cold)
+       *(.text.unlikely)
        *(.fixup)
        *(.gnu.warning)
        _etext = .;             /* End of text section */

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel