]> err.no Git - linux-2.6/commitdiff
all-archs: consolidate .data section definition in asm-generic
authorSam Ravnborg <sam@ravnborg.org>
Thu, 17 May 2007 11:38:44 +0000 (13:38 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 19 May 2007 07:11:57 +0000 (09:11 +0200)
With this consolidation we can now modify the .data
section definition in one spot for all archs.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
29 files changed:
arch/alpha/kernel/vmlinux.lds.S
arch/arm/kernel/vmlinux.lds.S
arch/arm26/kernel/vmlinux-arm26-xip.lds.in
arch/arm26/kernel/vmlinux-arm26.lds.in
arch/avr32/kernel/vmlinux.lds.c
arch/blackfin/kernel/vmlinux.lds.S
arch/frv/kernel/vmlinux.lds.S
arch/h8300/kernel/vmlinux.lds.S
arch/i386/kernel/vmlinux.lds.S
arch/ia64/kernel/vmlinux.lds.S
arch/m32r/kernel/vmlinux.lds.S
arch/m68k/kernel/vmlinux-std.lds
arch/m68k/kernel/vmlinux-sun3.lds
arch/m68knommu/kernel/vmlinux.lds.S
arch/mips/kernel/vmlinux.lds.S
arch/parisc/kernel/vmlinux.lds.S
arch/powerpc/kernel/vmlinux.lds.S
arch/ppc/kernel/vmlinux.lds.S
arch/s390/kernel/vmlinux.lds.S
arch/sh/kernel/vmlinux.lds.S
arch/sh64/kernel/vmlinux.lds.S
arch/sparc/kernel/vmlinux.lds.S
arch/sparc64/kernel/vmlinux.lds.S
arch/um/kernel/dyn.lds.S
arch/um/kernel/uml.lds.S
arch/v850/kernel/vmlinux.lds.S
arch/x86_64/kernel/vmlinux.lds.S
arch/xtensa/kernel/vmlinux.lds.S
include/asm-generic/vmlinux.lds.h

index ab60e81540b597c58f7bbd93eeb152c599f1ea15..449e76f118d307eeab04842af47514272cbe0873 100644 (file)
@@ -89,7 +89,7 @@ SECTIONS
 
   _data = .;
   .data : {                                    /* Data */
-       *(.data)
+       DATA_DATA
        CONSTRUCTORS
   }
 
index 8d4e248a954460fe83ca2788ca77cd122957041e..2b7a8f5d8cf276fe1e31ec38cf4adcb909879cb2 100644 (file)
@@ -158,7 +158,7 @@ SECTIONS
                /*
                 * and the usual data section
                 */
-               *(.data)
+               DATA_DATA
                CONSTRUCTORS
 
                _edata = .;
index 89c806a3a51be1a6d9682d415a267e59b61c32ca..4ec715c25dea7d6bdbb4695584af836356a0e004 100644 (file)
@@ -111,7 +111,7 @@ SECTIONS
                /*
                 * and the usual data section
                 */
-               *(.data)
+               DATA_DATA
                CONSTRUCTORS
 
                *(.init.data)
index e3f9b18d9d23b5211ad6bfcec52b4cb6f0acdde2..6c44f6a17bf71d0c467db932e7a14ee80b5138f2 100644 (file)
@@ -106,7 +106,7 @@ SECTIONS
                /*
                 * and the usual data section
                 */
-               *(.data)
+               DATA_DATA
                CONSTRUCTORS
 
                _edata = .;
index dbba3912f7cebfd004d8c2ef49bea79b2e96e5bd..db0438f35c0066b8776df3c326e8de8ec6402427 100644 (file)
@@ -112,7 +112,7 @@ SECTIONS
 
                /* And the rest... */
                *(.data.rel*)
-               *(.data)
+               DATA_DATA
                CONSTRUCTORS
 
                _edata = .;
index 36fcc777ea8145b414622ca60d92075d3756ce82..86fe67995802e08e3ffe50352d65620c14ac0fc1 100644 (file)
@@ -200,7 +200,7 @@ SECTIONS
                 __sdata = .;
                . = ALIGN(0x2000);
                *(.data.init_task)
-               *(.data)
+               DATA_DATA
 
                . = ALIGN(32);
                *(.data.cacheline_aligned)
index 7e0998f7f70fe65d049e599da6e40c9581b1c0fa..481dc137464016a6e37adc46ed82ba0139a32861 100644 (file)
@@ -136,7 +136,8 @@ SECTIONS
 
   _sdata = .;
   .data : {                    /* Data */
-       *(.data .data.*)
+       DATA_DATA
+       *(.data.*)
        *(.exit.data)
        CONSTRUCTORS
        }
index 4365162952e438b0ae1858d14300706894d03fc5..a2e72d495551cd370454556898a9bf687fa869aa 100644 (file)
@@ -103,7 +103,7 @@ SECTIONS
        . = ALIGN(0x2000) ;
                *(.data.init_task)
        . = ALIGN(0x4) ;
-               *(.data)
+               DATA_DATA
        . = ALIGN(0x4) ;
                *(.data.*)      
 
index dfc439a570d0544f4837d1b6bc4676edb0a2659c..aa87b06c7c8233930358bcc613f2c10dcd764f61 100644 (file)
@@ -74,7 +74,7 @@ SECTIONS
   /* writeable */
   . = ALIGN(4096);
   .data : AT(ADDR(.data) - LOAD_OFFSET) {      /* Data */
-       *(.data)
+       DATA_DATA
        CONSTRUCTORS
        } :data
 
index 19108d0bb060356b9e1732ec9ebb3ceca8202cd7..5a65965c8b53b4c3e787b5f17025af610dce4626 100644 (file)
@@ -214,7 +214,12 @@ SECTIONS
 
   data : { } :data
   .data : AT(ADDR(.data) - LOAD_OFFSET)
-       { *(.data) *(.data1) *(.gnu.linkonce.d*) CONSTRUCTORS }
+       {
+               DATA_DATA
+               *(.data1)
+               *(.gnu.linkonce.d*)
+               CONSTRUCTORS
+       }
 
   . = ALIGN(16);       /* gp must be 16-byte aligned for exc. table */
   .got : AT(ADDR(.got) - LOAD_OFFSET)
index bb1a2f50255e8cb747568d388621a55cf10b864d..4e2d5b9f0a9abc601e591040bc1c3a5517d3a0b8 100644 (file)
@@ -50,7 +50,7 @@ SECTIONS
   .data : {                    /* Data */
        *(.spu)
        *(.spi)
-       *(.data)
+       DATA_DATA
        CONSTRUCTORS
        }
 
index a65cef8269760d2ce05b23bc1b33e6495a1bda86..78f139226a1ba1dee2fce98e7c1e7a7ee2e3af3c 100644 (file)
@@ -28,7 +28,7 @@ SECTIONS
   _etext = .;                  /* End of text section */
 
   .data : {                    /* Data */
-       *(.data)
+       DATA_DATA
        CONSTRUCTORS
        }
 
index fa44d6c49acce646367e069beff55824f43d3b8f..c8999b2db23b01f86f0aff8d269b78894147f623 100644 (file)
@@ -23,7 +23,7 @@ SECTIONS
   _etext = .;                  /* End of text section */
 
   .data : {                    /* Data */
-       *(.data)
+       DATA_DATA
        CONSTRUCTORS
        . = ALIGN(16);          /* Exception table */
        __start___ex_table = .;
index 6d4585eb6e79ee9821a81a03130a76b7c4d1d661..07a0055602f447b4466442c7bedb125d3a149e7f 100644 (file)
@@ -133,7 +133,7 @@ SECTIONS {
        .data DATA_ADDR : {
                . = ALIGN(4);
                _sdata = . ;
-               *(.data)
+               DATA_DATA
                . = ALIGN(8192) ;
                *(.data.init_task)
                _edata = . ;
index cfe4b67ef268e1ad314ade3640f84c6eb07f51e3..9b9992cd562acd17ee03cc94d69be6acfdfbad1e 100644 (file)
@@ -62,7 +62,7 @@ SECTIONS
     . = ALIGN(_PAGE_SIZE);
     *(.data.init_task)
 
-    *(.data)
+    DATA_DATA
 
     CONSTRUCTORS
   }
index 321de82fa86703c5bef12bf1d3d9d7e777c4dedc..4d96ba4b984986ce4c018a070b46ef72c2ea00a3 100644 (file)
@@ -91,7 +91,7 @@ SECTIONS
 
   . = ALIGN(L1_CACHE_BYTES);
   .data : {                    /* Data */
-       *(.data)
+       DATA_DATA
        CONSTRUCTORS
        }
 
index f26620988860bbac524b5b371e7fa36d1440ae4d..f7d7bf19e4fba48807885224f0239214f38666c5 100644 (file)
@@ -168,7 +168,7 @@ SECTIONS
 #ifdef CONFIG_PPC32
        .data    :
        {
-               *(.data)
+               DATA_DATA
                *(.sdata)
                *(.got.plt) *(.got)
        }
index 419ef7e8e3843da2d88b5ab592c78fda63b44284..19db8746ff1460a6fcc716bf5db2219e5e09de1d 100644 (file)
@@ -67,7 +67,7 @@ SECTIONS
   . = ALIGN(4096);
   .data    :
   {
-    *(.data)
+    DATA_DATA
     *(.data1)
     *(.sdata)
     *(.sdata2)
index 89c2ec5c85ff160ab21e3ced55f07d8fd1298f56..7158a804a5e4f4ca0d4ff00d3773c8bf5474eff9 100644 (file)
@@ -48,7 +48,7 @@ SECTIONS
   BUG_TABLE
 
   .data : {                    /* Data */
-       *(.data)
+       DATA_DATA
        CONSTRUCTORS
        }
 
index 2367869d21410639ccc82beddfc0c802adbf4617..4c5b57e9c3c1c463a12b5c4ee13b90e48c1cbdf7 100644 (file)
@@ -41,7 +41,7 @@ SECTIONS
   BUG_TABLE
 
   .data : {                    /* Data */
-       *(.data)
+       DATA_DATA
 
         /* Align the initial ramdisk image (INITRD) on page boundaries. */
         . = ALIGN(PAGE_SIZE);
index fdf72ceff86997337ecc906098ddc990c138a645..02aea86c5907cb5de7c8480b4ce892915a52d40a 100644 (file)
@@ -78,7 +78,7 @@ SECTIONS
   _etext = .;                  /* End of text section */
 
   .data : C_PHYS(.data) {                      /* Data */
-       *(.data)
+       DATA_DATA
        CONSTRUCTORS
        }
 
index 5cb600e29875c8ee36aa5d1aae9fff42087d3ed4..f75a1b822789ec046beb013f2f6720b94375f8ec 100644 (file)
@@ -22,7 +22,7 @@ SECTIONS
   RODATA
   .data    :
   {
-    *(.data)
+    DATA_DATA
     CONSTRUCTORS
   }
   .data1   : { *(.data1) }
index f06da20533f5432110ebc242bee7af3497236158..fb648de18a8d0b6350c06cc0c76191831907d304 100644 (file)
@@ -27,7 +27,7 @@ SECTIONS
 
   .data    :
   {
-    *(.data)
+    DATA_DATA
     CONSTRUCTORS
   }
   .data1   : { *(.data1) }
index ec8477d0feb305f145e5e8802733a2d59a26d5d0..24547741b205b4f7ccedf081725bd3f1c490cff3 100644 (file)
@@ -99,7 +99,8 @@ SECTIONS
     *(.data.init_task)
     . = ALIGN(KERNEL_STACK_SIZE);
     *(.data.init_irqstack)
-    *(.data .data.* .gnu.linkonce.d.*)
+    DATA_DATA
+    *(.data.* .gnu.linkonce.d.*)
     SORT(CONSTRUCTORS)
   }
   .data1          : { *(.data1) }
index 84351059c356c983caa006a411656b5360370ad6..307b9373676b2f4d0ae49374df6b47292fb4c53c 100644 (file)
@@ -61,7 +61,7 @@ SECTIONS
     *(.data.init_task)
     . = ALIGN(KERNEL_STACK_SIZE);
     *(.data.init_irqstack)
-    *(.data)
+    DATA_DATA
     *(.gnu.linkonce.d*)
     CONSTRUCTORS
   }
index 9e2b4bc06c68b9fd5f5892dfc50263e155f3e3a7..6172599b4ce2aab5e3fe3551cb351b44ecd5ff0c 100644 (file)
 /* Kernel data segment.  */
 #define DATA_CONTENTS                                                        \
                __sdata = . ;                                                 \
-               *(.data)                                                      \
+               DATA_DATA                                                     \
                        *(.exit.data)   /* 2.5 convention */                  \
                        *(.data.exit)   /* 2.4 convention */                  \
                . = ALIGN (16) ;                                              \
index c77142d9fba9aa5f6941c63550850cb075c207a3..dbccfda8364f913c12167c25da77d5573eff364d 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
   . = ALIGN(PAGE_SIZE);        /* Align data segment to page size boundary */
                                /* Data */
   .data : AT(ADDR(.data) - LOAD_OFFSET) {
-       *(.data)
+       DATA_DATA
        CONSTRUCTORS
        } :data
 
index 7d2dfb286a92f507b712313119ce6b6cad1a46ae..4b7b4ff7997349abfb994becb0fade83492ad28b 100644 (file)
@@ -145,7 +145,8 @@ SECTIONS
   _fdata = .;
   .data :
   {
-    *(.data) CONSTRUCTORS
+    DATA_DATA
+    CONSTRUCTORS
     . = ALIGN(XCHAL_ICACHE_LINESIZE);
     *(.data.cacheline_aligned)
   }
index a464227a66b1d06d45b1aaedb6c9ac75d1b20687..52e2d69ee535ec664ffe5422e58b9af0281ad1b6 100644 (file)
@@ -9,6 +9,10 @@
 /* Align . to a 8 byte boundary equals to maximum function alignment. */
 #define ALIGN_FUNCTION()  . = ALIGN(8)
 
+/* .data section */
+#define DATA_DATA                                                      \
+       *(.data)
+
 #define RODATA                                                         \
        . = ALIGN(4096);                                                \
        .rodata           : AT(ADDR(.rodata) - LOAD_OFFSET) {           \