all-archs: consolidate .data section definition in asm-generic

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>
This commit is contained in:
Sam Ravnborg 2007-05-17 13:38:44 +02:00
parent 7664709b44
commit ca967258b6
29 changed files with 40 additions and 28 deletions

View File

@ -89,7 +89,7 @@ SECTIONS
_data = .;
.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}

View File

@ -158,7 +158,7 @@ SECTIONS
/*
* and the usual data section
*/
*(.data)
DATA_DATA
CONSTRUCTORS
_edata = .;

View File

@ -111,7 +111,7 @@ SECTIONS
/*
* and the usual data section
*/
*(.data)
DATA_DATA
CONSTRUCTORS
*(.init.data)

View File

@ -106,7 +106,7 @@ SECTIONS
/*
* and the usual data section
*/
*(.data)
DATA_DATA
CONSTRUCTORS
_edata = .;

View File

@ -112,7 +112,7 @@ SECTIONS
/* And the rest... */
*(.data.rel*)
*(.data)
DATA_DATA
CONSTRUCTORS
_edata = .;

View File

@ -200,7 +200,7 @@ SECTIONS
__sdata = .;
. = ALIGN(0x2000);
*(.data.init_task)
*(.data)
DATA_DATA
. = ALIGN(32);
*(.data.cacheline_aligned)

View File

@ -136,7 +136,8 @@ SECTIONS
_sdata = .;
.data : { /* Data */
*(.data .data.*)
DATA_DATA
*(.data.*)
*(.exit.data)
CONSTRUCTORS
}

View File

@ -103,7 +103,7 @@ SECTIONS
. = ALIGN(0x2000) ;
*(.data.init_task)
. = ALIGN(0x4) ;
*(.data)
DATA_DATA
. = ALIGN(0x4) ;
*(.data.*)

View File

@ -74,7 +74,7 @@ SECTIONS
/* writeable */
. = ALIGN(4096);
.data : AT(ADDR(.data) - LOAD_OFFSET) { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
} :data

View 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)

View File

@ -50,7 +50,7 @@ SECTIONS
.data : { /* Data */
*(.spu)
*(.spi)
*(.data)
DATA_DATA
CONSTRUCTORS
}

View File

@ -28,7 +28,7 @@ SECTIONS
_etext = .; /* End of text section */
.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}

View File

@ -23,7 +23,7 @@ SECTIONS
_etext = .; /* End of text section */
.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
. = ALIGN(16); /* Exception table */
__start___ex_table = .;

View File

@ -133,7 +133,7 @@ SECTIONS {
.data DATA_ADDR : {
. = ALIGN(4);
_sdata = . ;
*(.data)
DATA_DATA
. = ALIGN(8192) ;
*(.data.init_task)
_edata = . ;

View File

@ -62,7 +62,7 @@ SECTIONS
. = ALIGN(_PAGE_SIZE);
*(.data.init_task)
*(.data)
DATA_DATA
CONSTRUCTORS
}

View File

@ -91,7 +91,7 @@ SECTIONS
. = ALIGN(L1_CACHE_BYTES);
.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}

View File

@ -168,7 +168,7 @@ SECTIONS
#ifdef CONFIG_PPC32
.data :
{
*(.data)
DATA_DATA
*(.sdata)
*(.got.plt) *(.got)
}

View File

@ -67,7 +67,7 @@ SECTIONS
. = ALIGN(4096);
.data :
{
*(.data)
DATA_DATA
*(.data1)
*(.sdata)
*(.sdata2)

View File

@ -48,7 +48,7 @@ SECTIONS
BUG_TABLE
.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}

View 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);

View File

@ -78,7 +78,7 @@ SECTIONS
_etext = .; /* End of text section */
.data : C_PHYS(.data) { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}

View File

@ -22,7 +22,7 @@ SECTIONS
RODATA
.data :
{
*(.data)
DATA_DATA
CONSTRUCTORS
}
.data1 : { *(.data1) }

View File

@ -27,7 +27,7 @@ SECTIONS
.data :
{
*(.data)
DATA_DATA
CONSTRUCTORS
}
.data1 : { *(.data1) }

View 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) }

View File

@ -61,7 +61,7 @@ SECTIONS
*(.data.init_task)
. = ALIGN(KERNEL_STACK_SIZE);
*(.data.init_irqstack)
*(.data)
DATA_DATA
*(.gnu.linkonce.d*)
CONSTRUCTORS
}

View File

@ -113,7 +113,7 @@
/* Kernel data segment. */
#define DATA_CONTENTS \
__sdata = . ; \
*(.data) \
DATA_DATA \
*(.exit.data) /* 2.5 convention */ \
*(.data.exit) /* 2.4 convention */ \
. = ALIGN (16) ; \

View 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

View File

@ -145,7 +145,8 @@ SECTIONS
_fdata = .;
.data :
{
*(.data) CONSTRUCTORS
DATA_DATA
CONSTRUCTORS
. = ALIGN(XCHAL_ICACHE_LINESIZE);
*(.data.cacheline_aligned)
}

View 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) { \