MIPS: set load address of .iram to the start of .bss so RAM doesn't get wasted

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20741 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2009-04-19 14:10:59 +00:00
parent 42c7fb6b8b
commit dc8db2a820
2 changed files with 22 additions and 17 deletions

View file

@ -70,7 +70,10 @@ SECTIONS
. = ALIGN(4);
.iram IRAMORIG:
/* Set the load address of .iram at the same address as .bss
* so RAM won't be wasted as .iram in the end will get copied
* to IRAM. */
.iram IRAMORIG: AT (_edata)
{
_iramstart = .;
*(.vectors.1);
@ -88,7 +91,7 @@ SECTIONS
KEEP(*(.vectors))
*(.vectors);
_iramend = .;
} > IRAM AT> DRAM
} > IRAM
_iramcopy = LOADADDR(.iram);
. = ALIGN(4);