summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2010-01-03 16:34:56 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2010-01-03 16:34:56 +0000
commit6acbff46734eb25d2b0c75901fff75c94a8fd0df (patch)
tree54b0936a20f13905dfa03af1058e8f6eadcf1f0e /firmware
parentd3bbe51629212e770b30c701bef1b583b8deae88 (diff)
downloadrockbox-6acbff46734eb25d2b0c75901fff75c94a8fd0df.tar.gz
rockbox-6acbff46734eb25d2b0c75901fff75c94a8fd0df.tar.bz2
rockbox-6acbff46734eb25d2b0c75901fff75c94a8fd0df.zip
Onda VX747/VX777: cleanup linker files a bit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24169 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/app.lds34
1 files changed, 10 insertions, 24 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/app.lds b/firmware/target/mips/ingenic_jz47xx/app.lds
index e8c9ebf65b..bd924e44f4 100644
--- a/firmware/target/mips/ingenic_jz47xx/app.lds
+++ b/firmware/target/mips/ingenic_jz47xx/app.lds
@@ -12,17 +12,17 @@ STARTUP(target/mips/ingenic_jz47xx/crt0.o)
#define STUBOFFSET 0
#endif
-#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE
-#define DRAMORIG 0x80004000
+#define DRAMORIG 0x80004000 + STUBOFFSET
+#define DRAMSIZE (MEMORYSIZE * 0x100000 - STUBOFFSET)
#define IRAMORIG 0x80000000
#define IRAMSIZE 16K
/* End of the audio buffer, where the codec buffer starts */
-#define ENDAUDIOADDR (DRAMORIG + DRAMSIZE)
+#define ENDAUDIOADDR (DRAMORIG + DRAMSIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE)
/* Where the codec buffer ends, and the plugin buffer starts */
-#define ENDADDR (ENDAUDIOADDR + CODEC_SIZE)
+#define ENDCODECADDR (ENDAUDIOADDR + CODEC_SIZE)
MEMORY
{
@@ -55,11 +55,8 @@ SECTIONS
{
*(.data*);
*(.sdata*);
- *(.rel.dyn);
} > DRAM
- . = ALIGN(4);
-
/* 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. */
@@ -105,30 +102,19 @@ SECTIONS
_end = .;
} > DRAM
- . = ALIGN(4);
-
- .audiobuf ALIGN(4) :
+ .audiobuf :
{
+ . = ALIGN(4);
audiobuffer = .;
} > DRAM
- .audiobufend ENDAUDIOADDR:
- {
- audiobufend = .;
- }
-
- .codec ENDAUDIOADDR:
- {
- codecbuf = .;
- }
-
- .plugin ENDADDR:
- {
- pluginbuf = .;
- }
+ audiobufend = ENDAUDIOADDR;
+ codecbuf = ENDAUDIOADDR;
+ pluginbuf = ENDCODECADDR;
/DISCARD/ :
{
*(.eh_frame);
+ *(.rel.dyn);
}
}