diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-12-17 01:43:32 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-12-17 01:43:32 +0000 |
commit | 28dec004c0782e81661d9803ddf51a19b58dc469 (patch) | |
tree | a2651e48ceac9f3b448f361ef13e610316902ab8 /firmware/target/arm/tms320dm320 | |
parent | 8f92ab02e16c4d2b613214559651269843da96a8 (diff) | |
download | rockbox-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/tms320dm320')
-rw-r--r-- | firmware/target/arm/tms320dm320/app.lds | 8 | ||||
-rw-r--r-- | firmware/target/arm/tms320dm320/boot.lds | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/firmware/target/arm/tms320dm320/app.lds b/firmware/target/arm/tms320dm320/app.lds index a1b29dda6f..a3dadb64ed 100644 --- a/firmware/target/arm/tms320dm320/app.lds +++ b/firmware/target/arm/tms320dm320/app.lds | |||
@@ -115,9 +115,9 @@ SECTIONS | |||
115 | { | 115 | { |
116 | . = ALIGN(0x4); | 116 | . = ALIGN(0x4); |
117 | _iramstart = .; | 117 | _iramstart = .; |
118 | *(.icode) | 118 | *(.icode*) |
119 | *(.irodata) | 119 | *(.irodata*) |
120 | *(.idata) | 120 | *(.idata*) |
121 | _iramend = .; | 121 | _iramend = .; |
122 | } > ITCM AT> DRAM | 122 | } > ITCM AT> DRAM |
123 | 123 | ||
@@ -137,7 +137,7 @@ SECTIONS | |||
137 | { | 137 | { |
138 | . = ALIGN(0x4); | 138 | . = ALIGN(0x4); |
139 | _ibss_start = .; | 139 | _ibss_start = .; |
140 | *(.ibss) | 140 | *(.ibss*) |
141 | _ibss_end = .; | 141 | _ibss_end = .; |
142 | } > ITCM | 142 | } > ITCM |
143 | 143 | ||
diff --git a/firmware/target/arm/tms320dm320/boot.lds b/firmware/target/arm/tms320dm320/boot.lds index 65649d7268..43ed6486e9 100644 --- a/firmware/target/arm/tms320dm320/boot.lds +++ b/firmware/target/arm/tms320dm320/boot.lds | |||
@@ -136,9 +136,9 @@ SECTIONS | |||
136 | { | 136 | { |
137 | . = ALIGN(0x4); | 137 | . = ALIGN(0x4); |
138 | _iramstart = .; | 138 | _iramstart = .; |
139 | *(.icode) | 139 | *(.icode*) |
140 | *(.irodata) | 140 | *(.irodata*) |
141 | *(.idata) | 141 | *(.idata*) |
142 | _iramend = .; | 142 | _iramend = .; |
143 | } > IRAM AT> FLASH | 143 | } > IRAM AT> FLASH |
144 | 144 | ||
@@ -148,7 +148,7 @@ SECTIONS | |||
148 | { | 148 | { |
149 | . = ALIGN(0x4); | 149 | . = ALIGN(0x4); |
150 | _ibss_start = .; | 150 | _ibss_start = .; |
151 | *(.ibss) | 151 | *(.ibss*) |
152 | _ibss_end = .; | 152 | _ibss_end = .; |
153 | } > IRAM | 153 | } > IRAM |
154 | 154 | ||