rockbox/firmware/target/arm/as3525/boot.lds
Michael Sevakis 43d7a75369 Get the linker files that slipped through in r31337.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31338 a1c6a512-1295-4272-9138-f99709370657
2011-12-17 02:00:59 +00:00

51 lines
799 B
Text

#include "config.h"
#include "cpu.h"
ENTRY(start)
OUTPUT_FORMAT(elf32-littlearm)
OUTPUT_ARCH(arm)
STARTUP(target/arm/crt0.o)
#define LOAD_SIZE 0x100000 /* Reserve 1MB for loading the firmware */
MEMORY
{
IRAM : ORIGIN = IRAM_ORIG, LENGTH = IRAM_SIZE
DRAM : ORIGIN = DRAM_ORIG + LOAD_SIZE, LENGTH = DRAM_SIZE - LOAD_SIZE - TTB_SIZE
}
SECTIONS
{
. = IRAM_ORIG;
.text : {
*(.init.text)
*(.glue_7)
*(.glue_7t)
*(.text*)
*(.icode*)
} > IRAM
.data : {
*(.data*)
*(.rodata*)
_dataend = . ;
} > IRAM
.stack (NOLOAD) :
{
*(.stack)
_stackbegin = .;
stackbegin = .;
. += 0x2000;
_stackend = .;
stackend = .;
} > IRAM
.bss (NOLOAD) : {
_edata = .;
*(.bss*);
*(COMMON)
_end = .;
} > DRAM
}