Trim down peak calculation a bit.
[kugel-rb.git] / firmware / target / arm / as3525 / boot.lds
blob502e90c22b90d100f1fa643709d7bdbefd58a09f
1 #include "config.h"
2 #include "cpu.h"
4 ENTRY(start)
5 OUTPUT_FORMAT(elf32-littlearm)
6 OUTPUT_ARCH(arm)
7 STARTUP(target/arm/crt0.o)
9 #ifdef SANSA_CLIPV2
10 #define RAMORIG 0x0             /* DRAM */
11 #define RAMSIZE (MEM*0x100000)
12 #else
13 #define RAMORIG 0x81000000      /* IRAM */
14 #define RAMSIZE 0x50000
15 #endif
17 MEMORY
19     RAM : ORIGIN = RAMORIG, LENGTH = RAMSIZE
22 SECTIONS
24   . = RAMORIG;
26   .text : {
27     *(.init.text)
28     *(.glue_7)
29     *(.glue_7t)
30     *(.text*)
31   } > RAM
33   .data : {
34     *(.icode)
35     *(.irodata)
36     *(.idata)
37     *(.data*)
38     *(.ncdata*)
39     *(.rodata*)
40     _dataend = . ;
41    } > RAM
43   .stack  (NOLOAD) :
44   {
45      *(.stack)
46      _stackbegin = .;
47      stackbegin = .;
48      . += 0x2000;
49      _stackend = .;
50      stackend = .;
51   } > RAM
53   .bss (NOLOAD) : {
54      _edata = .;
55      *(.bss*);
56      *(.ibss);
57      *(COMMON)
58      *(.ncbss*);
59      _end = .;
60    } > RAM