]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
Revert "init: annotate all command line parameter infrastructure as const"
authorJan Beulich <jbeulich@suse.com>
Mon, 22 Feb 2016 16:30:54 +0000 (17:30 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 15 Mar 2016 16:32:29 +0000 (16:32 +0000)
This reverts commit 59b151d2c0bf37f3f2f984096d384dfdfa03a8f4,
as it breaks the build with older gcc.

xen/arch/arm/xen.lds.S
xen/arch/x86/xen.lds.S
xen/include/xen/init.h

index d22c263b809420b145165a072a52a6acdc076762..f501a2fd013f75609f63d37a90bedfa12be0fb01 100644 (file)
@@ -115,12 +115,6 @@ SECTIONS
   .init.data : {
        *(.init.rodata)
        *(.init.rodata.str*)
-
-       . = ALIGN(8);
-       __setup_start = .;
-       *(.init.setup)
-       __setup_end = .;
-
        *(.init.data)
        *(.init.data.rel)
        *(.init.data.rel.*)
@@ -131,6 +125,11 @@ SECTIONS
        __ctors_end = .;
   } :text
   . = ALIGN(32);
+  .init.setup : {
+       __setup_start = .;
+       *(.init.setup)
+       __setup_end = .;
+  } :text
   .init.proc.info : {
        __proc_info_start = .;
        *(.init.proc.info)
index 0c9aefa3b3b32611cdf6197b2a14dc6ba4de3b16..9fde1dbffb3df3cc7b3d990b0b9f9cf59834b471 100644 (file)
@@ -120,12 +120,6 @@ SECTIONS
   .init.data : {
        *(.init.rodata)
        *(.init.rodata.str*)
-
-       . = ALIGN(8);
-       __setup_start = .;
-       *(.init.setup)
-       __setup_end = .;
-
        *(.init.data)
        *(.init.data.rel)
        *(.init.data.rel.*)
@@ -152,6 +146,11 @@ SECTIONS
        __ctors_end = .;
   } :text
   . = ALIGN(32);
+  .init.setup : {
+       __setup_start = .;
+       *(.init.setup)
+       __setup_end = .;
+  } :text
   .initcall.init : {
        __initcall_start = .;
        *(.initcallpresmp.init)
index 142c5c80f81b23a6a1a9468b259a610b5f162132..6081102556224af769efe956277dcca1ced85021 100644 (file)
@@ -87,8 +87,8 @@ struct kernel_param {
 
 extern struct kernel_param __setup_start, __setup_end;
 
-#define __setup_str static const __initconst __attribute__((__aligned__(1))) char
-#define __kparam static const __initsetup struct kernel_param
+#define __setup_str static __initdata __attribute__((__aligned__(1))) char
+#define __kparam static __initsetup struct kernel_param
 
 #define custom_param(_name, _var) \
     __setup_str __setup_str_##_var[] = _name; \