summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tcc780x/app.lds
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/tcc780x/app.lds
parent8f92ab02e16c4d2b613214559651269843da96a8 (diff)
downloadrockbox-28dec004c0782e81661d9803ddf51a19b58dc469.tar.gz
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/tcc780x/app.lds')
-rw-r--r--firmware/target/arm/tcc780x/app.lds11
1 files changed, 4 insertions, 7 deletions
diff --git a/firmware/target/arm/tcc780x/app.lds b/firmware/target/arm/tcc780x/app.lds
index e84ea05de7..e56c7f5cb7 100644
--- a/firmware/target/arm/tcc780x/app.lds
+++ b/firmware/target/arm/tcc780x/app.lds
@@ -51,10 +51,7 @@ SECTIONS
51 51
52 .rodata : 52 .rodata :
53 { 53 {
54 *(.rodata) /* problems without this, dunno why */
55 *(.rodata*) 54 *(.rodata*)
56 *(.rodata.str1.1)
57 *(.rodata.str1.4)
58 . = ALIGN(0x4); 55 . = ALIGN(0x4);
59 } > DRAM 56 } > DRAM
60 57
@@ -97,9 +94,9 @@ SECTIONS
97 .iram : 94 .iram :
98 { 95 {
99 _iramstart = .; 96 _iramstart = .;
100 *(.irodata) 97 *(.irodata*)
101 *(.idata) 98 *(.idata*)
102 *(.icode) 99 *(.icode*)
103 . = ALIGN(0x4); 100 . = ALIGN(0x4);
104 _iramend = .; 101 _iramend = .;
105 } > SRAM AT> DRAM 102 } > SRAM AT> DRAM
@@ -109,7 +106,7 @@ SECTIONS
109 .ibss (NOLOAD) : 106 .ibss (NOLOAD) :
110 { 107 {
111 _iedata = .; 108 _iedata = .;
112 *(.ibss) 109 *(.ibss*)
113 . = ALIGN(0x4); 110 . = ALIGN(0x4);
114 _iend = .; 111 _iend = .;
115 } > SRAM 112 } > SRAM