]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
xen/link: Move .data.rel.ro sections into .rodata for final link
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 25 Jul 2017 09:21:37 +0000 (10:21 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 25 Jul 2017 09:22:36 +0000 (10:22 +0100)
This includes stuff like the hypercall tables which we really kind of want
to be read-only. And they were going into .data.read-mostly.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/arm/xen.lds.S
xen/arch/x86/xen.lds.S

index 44bd3bf0ce616ca014342175d0bfe6d20c6442c5..2d54f224ec436a7f8f02409e8cb45beb1ed13315 100644 (file)
@@ -52,6 +52,8 @@ SECTIONS
        __stop_bug_frames_2 = .;
        *(.rodata)
        *(.rodata.*)
+       *(.data.rel.ro)
+       *(.data.rel.ro.*)
 
 #ifdef CONFIG_LOCK_PROFILE
        . = ALIGN(POINTER_ALIGN);
@@ -97,8 +99,6 @@ SECTIONS
        __stop___pre_ex_table = .;
 
        *(.data.read_mostly)
-       *(.data.rel.ro)
-       *(.data.rel.ro.*)
   } :text
 
   . = ALIGN(8);
index 8289a1bf0972aac53f844dd2ac387158e7ea3d3f..ff08bbe42acd488fe72b6abf7b78b733bae83ee3 100644 (file)
@@ -90,6 +90,8 @@ SECTIONS
 
        *(.rodata)
        *(.rodata.*)
+       *(.data.rel.ro)
+       *(.data.rel.ro.*)
 
 #if defined(BUILD_ID) && defined(EFI) && !defined(BUILD_ID_EFI)
 /*
@@ -224,8 +226,6 @@ SECTIONS
        __start_schedulers_array = .;
        *(.data.schedulers)
        __end_schedulers_array = .;
-       *(.data.rel.ro)
-       *(.data.rel.ro.*)
   } :text
 
   .data : {                    /* Data */