mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
42c7fb6b8b
commit
dc8db2a820
2 changed files with 22 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue