Skip to contentSkip to conversation

x86: link time .data section adjustments

PATCH New Jan Beulich 1 participant 1 message Dec 23, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 x86: link time .data section adjustments

Fold compiler generated sections (mostly due to -fPIC on x86-64) into the general .data and .data.read_mostly sections.

xen/arch/x86/xen.lds.S +4 -0
@@ -51,12 +51,16 @@ SECTIONS
        __stop___pre_ex_table = .;
 
        *(.data.read_mostly)
+       *(.data.rel.ro)
+       *(.data.rel.ro.*)
   } :text
 
   .data : {                    /* Data */
        . = ALIGN(PAGE_SIZE);
        *(.data.page_aligned)
        *(.data)
+       *(.data.rel)
+       *(.data.rel.*)
        CONSTRUCTORS
   } :text
 

Fold compiler generated sections (mostly due to -fPIC on x86-64) into the general .data and .data.read_mostly sections.

xen/arch/x86/xen.lds.S +4 -0
@@ -51,12 +51,16 @@ SECTIONS
        __stop___pre_ex_table = .;
 
        *(.data.read_mostly)
+       *(.data.rel.ro)
+       *(.data.rel.ro.*)
   } :text
 
   .data : {                    /* Data */
        . = ALIGN(PAGE_SIZE);
        *(.data.page_aligned)
        *(.data)
+       *(.data.rel)
+       *(.data.rel.*)
        CONSTRUCTORS
   } :text
 

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