mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-12 13:35:21 -04:00
arm: Make all linker scripts compatible with per-symbol sections
Let all ARM linker scripts handle properly -ffunction-sections and -fdata-sections. This will be useful for future changes in order to create symbol-specific sections in common .S files. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
This commit is contained in:
parent
9ce8e2386c
commit
1a9a91dcfa
@ -38,7 +38,7 @@ SECTIONS
|
|||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
__start = .;
|
__start = .;
|
||||||
arch/arm/cpu/arm1136/start.o (.text)
|
arch/arm/cpu/arm1136/start.o (.text*)
|
||||||
*(.text*)
|
*(.text*)
|
||||||
} >.sram
|
} >.sram
|
||||||
|
|
||||||
|
@ -31,18 +31,18 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
arch/arm/cpu/arm920t/start.o (.text)
|
arch/arm/cpu/arm920t/start.o (.text*)
|
||||||
/* the EP93xx expects to find the pattern 'CRUS' at 0x1000 */
|
/* the EP93xx expects to find the pattern 'CRUS' at 0x1000 */
|
||||||
. = 0x1000;
|
. = 0x1000;
|
||||||
LONG(0x53555243)
|
LONG(0x53555243)
|
||||||
*(.text)
|
*(.text*)
|
||||||
}
|
}
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.rodata : { *(.rodata) }
|
.rodata : { *(.rodata*) }
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.data : { *(.data) }
|
.data : { *(.data*) }
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.got : { *(.got) }
|
.got : { *(.got) }
|
||||||
@ -59,7 +59,7 @@ SECTIONS
|
|||||||
__image_copy_end = .;
|
__image_copy_end = .;
|
||||||
|
|
||||||
__bss_start = .;
|
__bss_start = .;
|
||||||
.bss : { *(.bss) }
|
.bss : { *(.bss*) }
|
||||||
__bss_end = .;
|
__bss_end = .;
|
||||||
|
|
||||||
_end = .;
|
_end = .;
|
||||||
|
@ -37,8 +37,8 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
arch/arm/cpu/arm926ejs/mxs/start.o (.text)
|
arch/arm/cpu/arm926ejs/mxs/start.o (.text*)
|
||||||
*(.text)
|
*(.text*)
|
||||||
}
|
}
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
@ -46,7 +46,7 @@ SECTIONS
|
|||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.data : {
|
.data : {
|
||||||
*(.data)
|
*(.data*)
|
||||||
}
|
}
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
@ -37,8 +37,8 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
arch/arm/cpu/arm926ejs/spear/start.o (.text)
|
arch/arm/cpu/arm926ejs/spear/start.o (.text*)
|
||||||
*(.text)
|
*(.text*)
|
||||||
}
|
}
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
@ -46,7 +46,7 @@ SECTIONS
|
|||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.data : {
|
.data : {
|
||||||
*(.data)
|
*(.data*)
|
||||||
}
|
}
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
@ -38,7 +38,7 @@ SECTIONS
|
|||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
__start = .;
|
__start = .;
|
||||||
arch/arm/cpu/armv7/start.o (.text)
|
arch/arm/cpu/armv7/start.o (.text*)
|
||||||
*(.text*)
|
*(.text*)
|
||||||
} >.sram
|
} >.sram
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
arch/arm/cpu/armv7/start.o (.text)
|
arch/arm/cpu/armv7/start.o (.text*)
|
||||||
*(.text*)
|
*(.text*)
|
||||||
} >.sdram
|
} >.sdram
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ SECTIONS
|
|||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
__start = .;
|
__start = .;
|
||||||
arch/arm/cpu/arm926ejs/start.o (.text)
|
arch/arm/cpu/arm926ejs/start.o (.text*)
|
||||||
*(.text*)
|
*(.text*)
|
||||||
} >.sram
|
} >.sram
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ SECTIONS
|
|||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
__start = .;
|
__start = .;
|
||||||
arch/arm/cpu/arm926ejs/start.o (.text)
|
arch/arm/cpu/arm926ejs/start.o (.text*)
|
||||||
*(.text*)
|
*(.text*)
|
||||||
} >.sram
|
} >.sram
|
||||||
|
|
||||||
|
@ -34,15 +34,15 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
arch/arm/cpu/arm926ejs/start.o (.text)
|
arch/arm/cpu/arm926ejs/start.o (.text*)
|
||||||
arch/arm/cpu/arm926ejs/davinci/libdavinci.o (.text)
|
arch/arm/cpu/arm926ejs/davinci/libdavinci.o (.text*)
|
||||||
drivers/mtd/nand/libnand.o (.text)
|
drivers/mtd/nand/libnand.o (.text*)
|
||||||
|
|
||||||
*(.text*)
|
*(.text*)
|
||||||
}
|
}
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.rodata : { *(.rodata) }
|
.rodata : { *(.rodata*) }
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.data : {
|
.data : {
|
||||||
|
@ -37,23 +37,23 @@ SECTIONS
|
|||||||
/* WARNING - the following is hand-optimized to fit within */
|
/* WARNING - the following is hand-optimized to fit within */
|
||||||
/* the sector layout of our flash chips! XXX FIXME XXX */
|
/* the sector layout of our flash chips! XXX FIXME XXX */
|
||||||
|
|
||||||
arch/arm/cpu/arm1136/start.o (.text)
|
arch/arm/cpu/arm1136/start.o (.text*)
|
||||||
board/freescale/mx31ads/libmx31ads.o (.text)
|
board/freescale/mx31ads/libmx31ads.o (.text*)
|
||||||
arch/arm/lib/libarm.o (.text)
|
arch/arm/lib/libarm.o (.text*)
|
||||||
net/libnet.o (.text)
|
net/libnet.o (.text*)
|
||||||
drivers/mtd/libmtd.o (.text)
|
drivers/mtd/libmtd.o (.text*)
|
||||||
|
|
||||||
. = DEFINED(env_offset) ? env_offset : .;
|
. = DEFINED(env_offset) ? env_offset : .;
|
||||||
common/env_embedded.o(.text)
|
common/env_embedded.o(.text*)
|
||||||
|
|
||||||
*(.text)
|
*(.text*)
|
||||||
}
|
}
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.rodata : { *(.rodata) }
|
.rodata : { *(.rodata*) }
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.data : {
|
.data : {
|
||||||
*(.data)
|
*(.data*)
|
||||||
}
|
}
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
@ -37,7 +37,7 @@ SECTIONS
|
|||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
__start = .;
|
__start = .;
|
||||||
arch/arm/cpu/armv7/start.o (.text)
|
arch/arm/cpu/armv7/start.o (.text*)
|
||||||
*(.text*)
|
*(.text*)
|
||||||
} >.sram
|
} >.sram
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
@ -54,7 +54,7 @@ SECTIONS
|
|||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.data : {
|
.data : {
|
||||||
*(.data)
|
*(.data*)
|
||||||
}
|
}
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
@ -78,7 +78,7 @@ SECTIONS
|
|||||||
|
|
||||||
.bss __rel_dyn_start (OVERLAY) : {
|
.bss __rel_dyn_start (OVERLAY) : {
|
||||||
__bss_start = .;
|
__bss_start = .;
|
||||||
*(.bss)
|
*(.bss*)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__bss_end = .;
|
__bss_end = .;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user