summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/iriver/boot.lds
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2008-05-01 17:13:33 +0000
committerBarry Wardell <rockbox@barrywardell.net>2008-05-01 17:13:33 +0000
commit93b8a076ec61c92e4fc996fb04bab4e7aa22da10 (patch)
treebbce700344ad60d5b3c5dfd2c2781e1b3a704efd /firmware/target/arm/iriver/boot.lds
parenta1fa57fc01232c027e01417180989f36e76367bf (diff)
downloadrockbox-93b8a076ec61c92e4fc996fb04bab4e7aa22da10.tar.gz
rockbox-93b8a076ec61c92e4fc996fb04bab4e7aa22da10.zip
Make the linker complain if the bootloader isn't going to fit into IRAM on PP devices.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17298 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/iriver/boot.lds')
-rw-r--r--firmware/target/arm/iriver/boot.lds22
1 files changed, 15 insertions, 7 deletions
diff --git a/firmware/target/arm/iriver/boot.lds b/firmware/target/arm/iriver/boot.lds
index 77e661f608..ab6a576078 100644
--- a/firmware/target/arm/iriver/boot.lds
+++ b/firmware/target/arm/iriver/boot.lds
@@ -13,6 +13,12 @@ STARTUP(target/arm/crt0-pp-bl.o)
#define FLASHORIG 0x001f0000
#define FLASHSIZE 2M
+MEMORY
+{
+ DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
+ IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
+}
+
SECTIONS
{
. = IRAMORIG;
@@ -20,26 +26,28 @@ SECTIONS
.text : {
*(.init.text)
*(.text*)
- }
+ *(.glue_7)
+ *(.glue_7t)
+ } > IRAM
.data : {
*(.icode)
*(.irodata)
*(.idata)
*(.data*)
- *(.ncdata*);
+ *(.ncdata*)
+ *(.rodata*)
_dataend = . ;
- }
+ } > IRAM
- .stack :
- {
+ .stack : {
*(.stack)
_stackbegin = .;
stackbegin = .;
. += 0x2000;
_stackend = .;
stackend = .;
- }
+ } > IRAM
/* The bss section is too large for IRAM - we just move it 16MB into the
DRAM */
@@ -51,5 +59,5 @@ SECTIONS
*(.ibss);
*(.ncbss*);
_end = .;
- }
+ } > DRAM
}