rockbox/utils/hwstub/stub/atj213x/hwstub.lds
Amaury Pouly 2cdfc43f10 hwstub: implement read/write data abort recovery
Change-Id: I1625873b6864584c40984723d82548ad242ee08e
2015-01-13 23:35:33 +01:00

92 lines
1.7 KiB
Text

#include "config.h"
ENTRY(main)
OUTPUT_ARCH(mips)
STARTUP(atj213x/crt0.o)
MEMORY
{
DRAM : ORIGIN = DRAM_ORIG, LENGTH = DRAM_SIZE
IRAM : ORIGIN = IRAM_ORIG, LENGTH = IRAM_SIZE
}
SECTIONS
{
.init.text :
{
relocstart = .;
oc_codestart = .;
KEEP(*(.init.text*))
} > IRAM
.icode :
{
*(.icode*)
} > IRAM
.data :
{
*(.rodata*)
*(.data*)
*(.rel.dyn)
} > IRAM
.bss (NOLOAD) :
{
bssbegin = .;
*(.sbss*)
*(.bss*)
*(COMMON)
*(.scommon*)
. = ALIGN(4);
bssend = .;
} > IRAM
.exception.tlb_refill (IRAM_ORIG + 0x1000) :
{
_irqbase = .;
KEEP(*(.exception.tlb_refill))
} > IRAM
.exception.cache_error (IRAM_ORIG + 0x1100) :
{
KEEP(*(.exception.cache_error))
} > IRAM
.exception.general_exception (IRAM_ORIG + 0x1180) :
{
KEEP(*(.exception.general_exception))
} > IRAM
.exception.irq (IRAM_ORIG + 0x1200) :
{
KEEP(*(.exception.irq))
} > IRAM
.text :
{
*(.text*)
. = ALIGN(16);
relocend = .;
} > IRAM
.stack (NOLOAD) :
{
. = ALIGN(4);
stackbegin = .;
oc_codeend = .;
oc_stackstart = .;
. += 0x2000;
stackend = .;
irqstackbegin = .;
. += 0x400;
irqstackend = .;
oc_stackend = .;
oc_bufferstart = .;
} > IRAM
.end IRAM_ORIG+IRAM_SIZE (NOLOAD) :
{
oc_bufferend = .;
} > IRAM
}