2008-03-13 03:48:23 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
ENTRY(start)
|
|
|
|
|
|
|
|
OUTPUT_FORMAT(elf32-littlearm)
|
|
|
|
OUTPUT_ARCH(arm)
|
2008-04-29 06:19:32 +00:00
|
|
|
STARTUP(target/arm/s3c2440/crt0.o)
|
2008-03-13 03:48:23 +00:00
|
|
|
|
|
|
|
#define PLUGINSIZE PLUGIN_BUFFER_SIZE
|
|
|
|
#define CODECSIZE CODEC_SIZE
|
|
|
|
|
|
|
|
#include "cpu.h"
|
2010-09-20 17:09:55 +00:00
|
|
|
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE - LCD_BUFFER_SIZE - TTB_SIZE
|
2008-03-13 03:48:23 +00:00
|
|
|
|
2010-09-20 17:09:55 +00:00
|
|
|
#define DRAMORIG 0x00000000
|
2008-03-13 03:48:23 +00:00
|
|
|
|
|
|
|
/* End of the audio buffer, where the codec buffer starts */
|
|
|
|
#define ENDAUDIOADDR (DRAMORIG + DRAMSIZE)
|
|
|
|
|
|
|
|
/* Where the codec buffer ends, and the plugin buffer starts */
|
|
|
|
#define ENDADDR (ENDAUDIOADDR + CODECSIZE)
|
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
2008-05-02 03:27:17 +00:00
|
|
|
/* This nice little hack is to trick ROLO into loading in a certain place
|
|
|
|
* CRT0.s takes care of making sure the code is where it needs to be
|
|
|
|
*/
|
|
|
|
loadaddress = 0x31000000;
|
|
|
|
|
2008-04-22 04:34:25 +00:00
|
|
|
.vectors DRAMORIG :
|
2008-03-13 03:48:23 +00:00
|
|
|
{
|
2008-04-22 04:34:25 +00:00
|
|
|
_vectorstart = .;
|
2011-12-18 06:43:08 +00:00
|
|
|
KEEP(*(.vectors*));
|
2008-03-13 03:48:23 +00:00
|
|
|
*(.init.text)
|
2008-04-22 04:34:25 +00:00
|
|
|
. = ALIGN(0x4);
|
|
|
|
} > DRAM
|
|
|
|
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
_textstart = .;
|
2008-03-13 03:48:23 +00:00
|
|
|
*(.text*)
|
2011-12-17 01:43:32 +00:00
|
|
|
*(.icode*)
|
2008-03-13 03:48:23 +00:00
|
|
|
*(.glue_7)
|
|
|
|
*(.glue_7t)
|
|
|
|
. = ALIGN(0x4);
|
|
|
|
} > DRAM
|
|
|
|
|
2008-04-22 04:34:25 +00:00
|
|
|
_textcopy = LOADADDR(.text);
|
|
|
|
|
2008-03-13 03:48:23 +00:00
|
|
|
.rodata :
|
|
|
|
{
|
|
|
|
*(.rodata*)
|
2008-05-10 22:03:45 +00:00
|
|
|
*(.irodata*)
|
2008-03-13 03:48:23 +00:00
|
|
|
. = ALIGN(0x4);
|
|
|
|
} > DRAM
|
|
|
|
|
2008-04-22 04:34:25 +00:00
|
|
|
.data :
|
2008-03-13 03:48:23 +00:00
|
|
|
{
|
|
|
|
*(.data*)
|
2008-05-10 22:03:45 +00:00
|
|
|
*(.idata*)
|
2008-03-13 03:48:23 +00:00
|
|
|
. = ALIGN(0x4);
|
|
|
|
} > DRAM
|
|
|
|
|
|
|
|
/DISCARD/ :
|
|
|
|
{
|
|
|
|
*(.eh_frame)
|
2008-04-22 04:34:25 +00:00
|
|
|
}
|
2008-03-13 03:48:23 +00:00
|
|
|
|
2008-05-10 22:03:45 +00:00
|
|
|
_initdata_end =.;
|
2008-03-13 03:48:23 +00:00
|
|
|
|
2008-05-10 22:03:45 +00:00
|
|
|
.stack (NOLOAD) :
|
2008-03-13 03:48:23 +00:00
|
|
|
{
|
|
|
|
*(.stack)
|
|
|
|
stackbegin = .;
|
|
|
|
. += 0x2000;
|
|
|
|
stackend = .;
|
|
|
|
} > DRAM
|
|
|
|
|
2008-05-10 22:03:45 +00:00
|
|
|
.bss (NOLOAD) :
|
2008-03-13 03:48:23 +00:00
|
|
|
{
|
|
|
|
_edata = .;
|
|
|
|
*(.bss*)
|
2008-05-10 22:03:45 +00:00
|
|
|
*(.ibss*)
|
2008-03-13 03:48:23 +00:00
|
|
|
*(COMMON)
|
|
|
|
. = ALIGN(0x4);
|
|
|
|
_end = .;
|
|
|
|
} > DRAM
|
|
|
|
|
2008-05-10 22:03:45 +00:00
|
|
|
.audiobuf (NOLOAD) :
|
2008-03-13 03:48:23 +00:00
|
|
|
{
|
2008-05-10 22:03:45 +00:00
|
|
|
. = ALIGN(4);
|
2008-03-13 03:48:23 +00:00
|
|
|
_audiobuffer = .;
|
|
|
|
audiobuffer = .;
|
|
|
|
} > DRAM
|
|
|
|
|
2008-05-10 22:03:45 +00:00
|
|
|
.audiobufend ENDAUDIOADDR (NOLOAD) :
|
2008-03-13 03:48:23 +00:00
|
|
|
{
|
|
|
|
audiobufend = .;
|
|
|
|
_audiobufend = .;
|
|
|
|
} > DRAM
|
|
|
|
|
2008-05-10 22:03:45 +00:00
|
|
|
.codec ENDAUDIOADDR (NOLOAD) :
|
2008-03-13 03:48:23 +00:00
|
|
|
{
|
|
|
|
codecbuf = .;
|
|
|
|
_codecbuf = .;
|
|
|
|
}
|
|
|
|
|
2008-05-10 22:03:45 +00:00
|
|
|
.plugin ENDADDR (NOLOAD) :
|
2008-03-13 03:48:23 +00:00
|
|
|
{
|
|
|
|
_pluginbuf = .;
|
|
|
|
pluginbuf = .;
|
|
|
|
}
|
|
|
|
}
|