2002-05-17 19:05:00 +00:00
|
|
|
ENTRY(start)
|
|
|
|
OUTPUT_FORMAT(elf32-sh)
|
2002-05-29 09:12:34 +00:00
|
|
|
INPUT(crt0.o)
|
2002-08-01 08:12:17 +00:00
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
DRAM : ORIGIN = 0x09010000, LENGTH = 0x1f0000
|
|
|
|
IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000
|
|
|
|
}
|
|
|
|
|
2002-05-17 19:05:00 +00:00
|
|
|
SECTIONS
|
|
|
|
{
|
2002-08-01 08:12:17 +00:00
|
|
|
.vectors :
|
2002-05-17 19:05:00 +00:00
|
|
|
{
|
2002-05-29 09:12:34 +00:00
|
|
|
*(.resetvectors);
|
2002-05-17 19:05:00 +00:00
|
|
|
*(.vectors);
|
|
|
|
. = ALIGN(0x200);
|
|
|
|
*(.init.text)
|
2002-08-01 08:12:17 +00:00
|
|
|
} > DRAM
|
2002-05-17 19:05:00 +00:00
|
|
|
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
*(.text)
|
2002-08-01 08:12:17 +00:00
|
|
|
} > DRAM
|
2002-05-17 19:05:00 +00:00
|
|
|
|
|
|
|
.data :
|
|
|
|
{
|
|
|
|
*(.data)
|
2002-08-01 08:12:17 +00:00
|
|
|
} > DRAM
|
2002-05-17 19:05:00 +00:00
|
|
|
|
|
|
|
.rodata :
|
|
|
|
{
|
|
|
|
*(.rodata)
|
2002-08-01 08:12:17 +00:00
|
|
|
} > DRAM
|
2002-05-24 15:37:26 +00:00
|
|
|
|
|
|
|
.stack :
|
|
|
|
{
|
|
|
|
*(.stack)
|
2002-07-15 22:15:00 +00:00
|
|
|
_stackbegin = .;
|
2002-08-01 08:12:17 +00:00
|
|
|
/* We put the copy of the .iram section here to save space */
|
|
|
|
_iramcopy = .;
|
2002-09-03 09:44:08 +00:00
|
|
|
. += 0x2000;
|
|
|
|
_topramcopy = .;
|
|
|
|
. += 0x300;
|
2002-07-15 22:15:00 +00:00
|
|
|
_stackend = .;
|
2002-08-01 08:12:17 +00:00
|
|
|
} > DRAM
|
|
|
|
|
|
|
|
.bss :
|
|
|
|
{
|
|
|
|
_edata = .;
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
_end = .;
|
|
|
|
} > DRAM
|
2002-05-24 15:37:26 +00:00
|
|
|
|
|
|
|
.heap :
|
|
|
|
{
|
|
|
|
_poolstart = .;
|
2002-05-28 14:02:19 +00:00
|
|
|
. = 0x20000;
|
2002-05-27 09:23:08 +00:00
|
|
|
_poolend = .;
|
2002-08-01 08:12:17 +00:00
|
|
|
} > DRAM
|
2002-05-24 15:37:26 +00:00
|
|
|
|
|
|
|
.mp3buf :
|
|
|
|
{
|
|
|
|
_mp3buf = .;
|
2002-08-01 08:12:17 +00:00
|
|
|
} > DRAM
|
2002-05-24 15:37:26 +00:00
|
|
|
|
2002-09-03 09:44:08 +00:00
|
|
|
.mp3end 0x09200000 - 0x300:
|
2002-05-24 15:37:26 +00:00
|
|
|
{
|
|
|
|
_mp3end = .;
|
2002-08-01 08:12:17 +00:00
|
|
|
} > DRAM
|
|
|
|
|
2002-09-03 09:44:08 +00:00
|
|
|
.topram : AT ( _topramcopy ) {
|
|
|
|
_topramstart = .;
|
|
|
|
*(.topcode)
|
|
|
|
_topramend = .;
|
|
|
|
} > DRAM
|
|
|
|
|
2002-08-01 08:12:17 +00:00
|
|
|
.iram 0xf000000 : AT ( _iramcopy )
|
|
|
|
{
|
|
|
|
_iramstart = .;
|
|
|
|
*(.icode)
|
|
|
|
*(.idata)
|
|
|
|
_iramend = .;
|
|
|
|
} > IRAM
|
2002-05-17 19:05:00 +00:00
|
|
|
}
|