Battery blinks if >BATTERY_LEVEL_DANGEROUS
[kugel-rb.git] / firmware / player.lds
blob55e26885cd38aa929ba851b25efd0a22cfc9f1b6
1 ENTRY(start)
2 OUTPUT_FORMAT(elf32-sh)
3 INPUT(crt0.o)
5 MEMORY
7    DRAM : ORIGIN = 0x09000000, LENGTH = 0x200000
8    IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000
11 SECTIONS
13     .vectors :
14     {
15         *(.resetvectors);
16         *(.vectors);
17         . = ALIGN(0x200);
18         *(.init.text)
19     } > DRAM
21     .text :
22     {
23         *(.text)
24     } > DRAM
26     .data :
27     {
28         *(.data)
29     } > DRAM
31     .rodata :
32     {
33         *(.rodata)
34     } > DRAM
36     .stack :
37     {
38        *(.stack)
39        _stackbegin = .;
40        /* We put the copy of the .iram section here to save space */
41        _iramcopy = .;
42        . = 0x2000;
43        _stackend = .;
44     } > DRAM
46     .bss :
47     {
48        _edata = .;
49         *(.bss)
50         *(COMMON)
51        _end = .;
52     } > DRAM
54     .heap :
55     {
56         _poolstart = .;
57         . = 0x20000;
58         _poolend = .;
59     } > DRAM
61     .mp3buf :
62     {
63         _mp3buf = .;
64     } > DRAM
66     .mp3end 0x09200000 :
67     {
68         _mp3end = .;
69     } > DRAM
71     .pad 0x0900C800 :
72     {
73            LONG(0);
74     } > DRAM
76     .iram 0xf000000 : AT ( _iramcopy )
77     {
78         _iramstart = .;
79         *(.icode)
80         *(.idata)
81         _iramend = .;
82     } > IRAM