2006-01-25 01:43:07 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#ifdef CPU_ARM
|
|
|
|
ENTRY(start)
|
|
|
|
STARTUP(crt0.o)
|
|
|
|
OUTPUT_FORMAT(elf32-littlearm)
|
|
|
|
#else
|
2020-11-03 23:42:50 +00:00
|
|
|
#error "Unsupported CPU!"
|
2006-01-25 01:43:07 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef IRIVER_IFP7XX_SERIES
|
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
IRAM : ORIGIN = 0, LENGTH = 0x10000
|
2006-02-12 23:16:05 +00:00
|
|
|
DRAM : ORIGIN = 0xc00000, LENGTH = 0x6000
|
|
|
|
DRAM_API : ORIGIN = 0xc06000, LENGTH = 0x100
|
2006-01-25 01:43:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
*(.init*)
|
|
|
|
*(.text)
|
|
|
|
*(.text*)
|
|
|
|
*(.rodata)
|
|
|
|
*(.rodata*)
|
|
|
|
*(.glue_7)
|
|
|
|
*(.glue_7t)
|
|
|
|
} >DRAM
|
|
|
|
|
2006-02-04 00:04:02 +00:00
|
|
|
.gdbapi :
|
|
|
|
{
|
|
|
|
*(.gdbapi)
|
|
|
|
} >DRAM_API
|
|
|
|
|
2006-01-25 01:43:07 +00:00
|
|
|
.data :
|
|
|
|
{
|
|
|
|
*(.data)
|
|
|
|
} >DRAM
|
|
|
|
|
|
|
|
.vectors :
|
|
|
|
{
|
|
|
|
_vectorsstart = .;
|
|
|
|
*(.vectors)
|
|
|
|
_vectorsend = .;
|
|
|
|
} >IRAM AT>DRAM
|
|
|
|
_vectorscopy = LOADADDR(.vectors);
|
|
|
|
|
|
|
|
.stack (NOLOAD) :
|
|
|
|
{
|
|
|
|
stackbegin = .;
|
|
|
|
. += 0x400;
|
|
|
|
_stub_stack = .;
|
|
|
|
. += 0x200;
|
|
|
|
stackend = .;
|
|
|
|
} >DRAM
|
|
|
|
|
|
|
|
.bss (NOLOAD) :
|
|
|
|
{
|
|
|
|
_edata = .;
|
|
|
|
*(.bss)
|
|
|
|
_end = .;
|
|
|
|
} >DRAM
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
|
2002-04-15 08:35:08 +00:00
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.vectors 0x09000000 :
|
|
|
|
{
|
|
|
|
*(.vectors);
|
|
|
|
. = ALIGN(0x200);
|
|
|
|
start.o(.text)
|
|
|
|
*(.rodata)
|
|
|
|
}
|
|
|
|
|
2002-04-23 21:59:20 +00:00
|
|
|
.text :
|
2002-04-15 08:35:08 +00:00
|
|
|
{
|
2002-04-23 21:59:20 +00:00
|
|
|
*(.text)
|
2002-04-15 08:35:08 +00:00
|
|
|
}
|
|
|
|
|
2002-04-23 21:59:20 +00:00
|
|
|
.bss :
|
2002-04-15 08:35:08 +00:00
|
|
|
{
|
2002-04-23 21:59:20 +00:00
|
|
|
_stack = . + 0x1000;
|
|
|
|
_stub_stack = _stack + 0x1000;
|
2002-04-15 08:35:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.pad 0x0900C800 :
|
|
|
|
{
|
|
|
|
LONG(0);
|
|
|
|
}
|
2006-01-25 01:43:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|