Commit ca967258 authored by Sam Ravnborg's avatar Sam Ravnborg

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: default avatarSam Ravnborg <sam@ravnborg.org>
parent 7664709b
......@@ -89,7 +89,7 @@ SECTIONS
_data = .;
.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}
......
......@@ -158,7 +158,7 @@ SECTIONS
/*
* and the usual data section
*/
*(.data)
DATA_DATA
CONSTRUCTORS
_edata = .;
......
......@@ -111,7 +111,7 @@ SECTIONS
/*
* and the usual data section
*/
*(.data)
DATA_DATA
CONSTRUCTORS
*(.init.data)
......
......@@ -106,7 +106,7 @@ SECTIONS
/*
* and the usual data section
*/
*(.data)
DATA_DATA
CONSTRUCTORS
_edata = .;
......
......@@ -112,7 +112,7 @@ SECTIONS
/* And the rest... */
*(.data.rel*)
*(.data)
DATA_DATA
CONSTRUCTORS
_edata = .;
......
......@@ -200,7 +200,7 @@ SECTIONS
__sdata = .;
. = ALIGN(0x2000);
*(.data.init_task)
*(.data)
DATA_DATA
. = ALIGN(32);
*(.data.cacheline_aligned)
......
......@@ -136,7 +136,8 @@ SECTIONS
_sdata = .;
.data : { /* Data */
*(.data .data.*)
DATA_DATA
*(.data.*)
*(.exit.data)
CONSTRUCTORS
}
......
......@@ -103,7 +103,7 @@ SECTIONS
. = ALIGN(0x2000) ;
*(.data.init_task)
. = ALIGN(0x4) ;
*(.data)
DATA_DATA
. = ALIGN(0x4) ;
*(.data.*)
......
......@@ -74,7 +74,7 @@ SECTIONS
/* writeable */
. = ALIGN(4096);
.data : AT(ADDR(.data) - LOAD_OFFSET) { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
} :data
......
......@@ -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)
......
......@@ -50,7 +50,7 @@ SECTIONS
.data : { /* Data */
*(.spu)
*(.spi)
*(.data)
DATA_DATA
CONSTRUCTORS
}
......
......@@ -28,7 +28,7 @@ SECTIONS
_etext = .; /* End of text section */
.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}
......
......@@ -23,7 +23,7 @@ SECTIONS
_etext = .; /* End of text section */
.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
. = ALIGN(16); /* Exception table */
__start___ex_table = .;
......
......@@ -133,7 +133,7 @@ SECTIONS {
.data DATA_ADDR : {
. = ALIGN(4);
_sdata = . ;
*(.data)
DATA_DATA
. = ALIGN(8192) ;
*(.data.init_task)
_edata = . ;
......
......@@ -62,7 +62,7 @@ SECTIONS
. = ALIGN(_PAGE_SIZE);
*(.data.init_task)
*(.data)
DATA_DATA
CONSTRUCTORS
}
......
......@@ -91,7 +91,7 @@ SECTIONS
. = ALIGN(L1_CACHE_BYTES);
.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}
......
......@@ -168,7 +168,7 @@ SECTIONS
#ifdef CONFIG_PPC32
.data :
{
*(.data)
DATA_DATA
*(.sdata)
*(.got.plt) *(.got)
}
......
......@@ -67,7 +67,7 @@ SECTIONS
. = ALIGN(4096);
.data :
{
*(.data)
DATA_DATA
*(.data1)
*(.sdata)
*(.sdata2)
......
......@@ -48,7 +48,7 @@ SECTIONS
BUG_TABLE
.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}
......
......@@ -41,7 +41,7 @@ SECTIONS
BUG_TABLE
.data : { /* Data */
*(.data)
DATA_DATA
/* Align the initial ramdisk image (INITRD) on page boundaries. */
. = ALIGN(PAGE_SIZE);
......
......@@ -78,7 +78,7 @@ SECTIONS
_etext = .; /* End of text section */
.data : C_PHYS(.data) { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}
......
......@@ -22,7 +22,7 @@ SECTIONS
RODATA
.data :
{
*(.data)
DATA_DATA
CONSTRUCTORS
}
.data1 : { *(.data1) }
......
......@@ -27,7 +27,7 @@ SECTIONS
.data :
{
*(.data)
DATA_DATA
CONSTRUCTORS
}
.data1 : { *(.data1) }
......
......@@ -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) }
......
......@@ -61,7 +61,7 @@ SECTIONS
*(.data.init_task)
. = ALIGN(KERNEL_STACK_SIZE);
*(.data.init_irqstack)
*(.data)
DATA_DATA
*(.gnu.linkonce.d*)
CONSTRUCTORS
}
......
......@@ -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) ; \
......
......@@ -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
......
......@@ -145,7 +145,8 @@ SECTIONS
_fdata = .;
.data :
{
*(.data) CONSTRUCTORS
DATA_DATA
CONSTRUCTORS
. = ALIGN(XCHAL_ICACHE_LINESIZE);
*(.data.cacheline_aligned)
}
......
......@@ -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) { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment