1
0
Fork 0
forked from len0rd/rockbox

Onda VX747/VX777: cleanup linker files a bit

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24169 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2010-01-03 16:34:56 +00:00
parent d3bbe51629
commit 6acbff4673
2 changed files with 11 additions and 24 deletions

View file

@ -153,6 +153,7 @@ OUTPUT_FORMAT(elf32-littlemips)
#elif CONFIG_CPU == JZ4732 #elif CONFIG_CPU == JZ4732
#define DRAMORIG 0x80004000 + STUBOFFSET #define DRAMORIG 0x80004000 + STUBOFFSET
#define IRAM DRAM #define IRAM DRAM
#define IRAMSIZE 0
/* The bit of IRAM that is available is used in the core */ /* The bit of IRAM that is available is used in the core */
#else #else
#define DRAMORIG 0x09000000 + STUBOFFSET #define DRAMORIG 0x09000000 + STUBOFFSET

View file

@ -12,17 +12,17 @@ STARTUP(target/mips/ingenic_jz47xx/crt0.o)
#define STUBOFFSET 0 #define STUBOFFSET 0
#endif #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 IRAMORIG 0x80000000
#define IRAMSIZE 16K #define IRAMSIZE 16K
/* End of the audio buffer, where the codec buffer starts */ /* 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 */ /* Where the codec buffer ends, and the plugin buffer starts */
#define ENDADDR (ENDAUDIOADDR + CODEC_SIZE) #define ENDCODECADDR (ENDAUDIOADDR + CODEC_SIZE)
MEMORY MEMORY
{ {
@ -55,11 +55,8 @@ SECTIONS
{ {
*(.data*); *(.data*);
*(.sdata*); *(.sdata*);
*(.rel.dyn);
} > DRAM } > DRAM
. = ALIGN(4);
/* Set the load address of .iram at the same address as .bss /* 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 * so RAM won't be wasted as .iram in the end will get copied
* to IRAM. */ * to IRAM. */
@ -105,30 +102,19 @@ SECTIONS
_end = .; _end = .;
} > DRAM } > DRAM
. = ALIGN(4); .audiobuf :
.audiobuf ALIGN(4) :
{ {
. = ALIGN(4);
audiobuffer = .; audiobuffer = .;
} > DRAM } > DRAM
.audiobufend ENDAUDIOADDR: audiobufend = ENDAUDIOADDR;
{ codecbuf = ENDAUDIOADDR;
audiobufend = .; pluginbuf = ENDCODECADDR;
}
.codec ENDAUDIOADDR:
{
codecbuf = .;
}
.plugin ENDADDR:
{
pluginbuf = .;
}
/DISCARD/ : /DISCARD/ :
{ {
*(.eh_frame); *(.eh_frame);
*(.rel.dyn);
} }
} }