summaryrefslogtreecommitdiffstats
path: root/firmware/rom.lds
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-10-19 19:35:24 +0000
committerJens Arnold <amiconn@rockbox.org>2005-10-19 19:35:24 +0000
commitabd9f83e92fae22dcb9806deae665b7b303f430d (patch)
tree8d0d1d65c6aaa596e171cda2d78706739046d0bd /firmware/rom.lds
parent266f173b72967bae96119e5428fabe692edd8c30 (diff)
downloadrockbox-abd9f83e92fae22dcb9806deae665b7b303f430d.tar.gz
rockbox-abd9f83e92fae22dcb9806deae665b7b303f430d.tar.bz2
rockbox-abd9f83e92fae22dcb9806deae665b7b303f430d.zip
Two new sections for IRAM usage: .irodata (selectable with the ICONST_ATTR attribute macro), allowing to put 'const' data into IRAM without causing a section type conflict, and .ibss (selectable with the IBSS_ATTR attribute macro) for uninitialised data. * Rockbox core: Adjusted the linker scripts and init code to not include the .ibss section in the binary, it is cleared instead. Saves ~500 bytes on archos and ~30KB on iriver. Codecs and plugins don't handle .ibss in a special way yet. * The init code properly handles empty sections now (except .stack, which should never be empty). * Unified the init code for SH1 and coldfire a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7644 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/rom.lds')
-rw-r--r--firmware/rom.lds9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/rom.lds b/firmware/rom.lds
index 8781873f45..7e178ae2b2 100644
--- a/firmware/rom.lds
+++ b/firmware/rom.lds
@@ -90,10 +90,19 @@ SECTIONS
{
_iramstart = .;
*(.icode)
+ *(.irodata)
*(.idata)
_iramend = .;
} > IRAM
+ .ibss (NOLOAD) :
+ {
+ _iedata = .;
+ *(.ibss)
+ . = ALIGN(0x4);
+ _iend = .;
+ } > IRAM
+
.stack :
{
*(.stack)