xen/link: handle .init.rodata.cst* sections in the linker script
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 27 Jun 2019 09:33:34 +0000 (11:33 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 27 Jun 2019 18:59:07 +0000 (19:59 +0100)
Note that those sections when not prefixed with .init are already
handled by the more general .rodata.* matching pattern in the .rodata
output section.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
[Make .init.rodata consistent with .rodata]
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/arm/xen.lds.S
xen/arch/x86/xen.lds.S

index e664c4441a516bda16b4e7c29723fd449365f631..12c107f45dc52f85118cce34c0ddd285518df7df 100644 (file)
@@ -154,8 +154,7 @@ SECTIONS
   . = ALIGN(PAGE_SIZE);
   .init.data : {
        *(.init.rodata)
-       *(.init.rodata.rel)
-       *(.init.rodata.str*)
+       *(.init.rodata.*)
 
        . = ALIGN(POINTER_ALIGN);
        __setup_start = .;
index cee7cf80ddb70b4b4341540b6ddd177b52606962..a73139cd29433c3274569681cd2caf98a959d1ff 100644 (file)
@@ -219,8 +219,7 @@ SECTIONS
 #endif
 
        *(.init.rodata)
-       *(.init.rodata.rel)
-       *(.init.rodata.str*)
+       *(.init.rodata.*)
 
        . = ALIGN(POINTER_ALIGN);
        __setup_start = .;