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
#define DRAMORIG 0x80004000 + STUBOFFSET
#define IRAM DRAM
#define IRAMSIZE 0
/* The bit of IRAM that is available is used in the core */
#else
#define DRAMORIG 0x09000000 + STUBOFFSET

View file

@ -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);
}
}