summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/s3c2440
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-12-17 01:43:32 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-12-17 01:43:32 +0000
commit28dec004c0782e81661d9803ddf51a19b58dc469 (patch)
treea2651e48ceac9f3b448f361ef13e610316902ab8 /firmware/target/arm/s3c2440
parent8f92ab02e16c4d2b613214559651269843da96a8 (diff)
downloadrockbox-28dec004c0782e81661d9803ddf51a19b58dc469.tar.gz
rockbox-28dec004c0782e81661d9803ddf51a19b58dc469.tar.bz2
rockbox-28dec004c0782e81661d9803ddf51a19b58dc469.zip
Do some things to make -ffunction-sections work better.
* Add wildcards to various sections placements a la *(".text") => "*(.text*)" * Remove hacky bits from those linker scripts (no problem encountered testing) * Change section for asm functions from .<section> to .<section>.<function> so that -ffunction-sections works for those asm file too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31337 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s3c2440')
-rw-r--r--firmware/target/arm/s3c2440/app.lds6
-rw-r--r--firmware/target/arm/s3c2440/boot.lds12
2 files changed, 5 insertions, 13 deletions
diff --git a/firmware/target/arm/s3c2440/app.lds b/firmware/target/arm/s3c2440/app.lds
index bfd672d1a3..bdc7380a54 100644
--- a/firmware/target/arm/s3c2440/app.lds
+++ b/firmware/target/arm/s3c2440/app.lds
@@ -43,9 +43,8 @@ SECTIONS
.text :
{
_textstart = .;
- *(.text)
*(.text*)
- *(.icode)
+ *(.icode*)
*(.glue_7)
*(.glue_7t)
. = ALIGN(0x4);
@@ -55,10 +54,7 @@ SECTIONS
.rodata :
{
- *(.rodata) /* problems without this, dunno why */
*(.rodata*)
- *(.rodata.str1.1)
- *(.rodata.str1.4)
*(.irodata*)
. = ALIGN(0x4);
} > DRAM
diff --git a/firmware/target/arm/s3c2440/boot.lds b/firmware/target/arm/s3c2440/boot.lds
index 731201fbb7..13b6344afb 100644
--- a/firmware/target/arm/s3c2440/boot.lds
+++ b/firmware/target/arm/s3c2440/boot.lds
@@ -31,9 +31,8 @@ SECTIONS
.text :
{
_textstart = .;
- *(.text)
*(.text*)
- *(.icode)
+ *(.icode*)
*(.glue_7)
*(.glue_7t)
. = ALIGN(0x4);
@@ -43,18 +42,15 @@ SECTIONS
.rodata :
{
- *(.rodata) /* problems without this, dunno why */
*(.rodata*)
- *(.rodata.str1.1)
- *(.rodata.str1.4)
- *(.irodata)
+ *(.irodata*)
. = ALIGN(0x4);
} > DRAM
.data :
{
*(.data*)
- *(.idata)
+ *(.idata*)
. = ALIGN(0x4);
} > DRAM
@@ -77,7 +73,7 @@ SECTIONS
{
_edata = .;
*(.bss*)
- *(.ibss)
+ *(.ibss*)
*(COMMON)
. = ALIGN(0x4);
_end = .;