Fixed red build
[kugel-rb.git] / firmware / player.lds
blob3cbf38210e6448e366bfb27f331cae7f2c3647ef
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         *(.rodata.str1.4)
35     } > DRAM
37     .stack :
38     {
39        *(.stack)
40        _stackbegin = .;
41        /* We put the copy of the .iram section here to save space */
42        _iramcopy = .;
43        . += 0x2000;
44        _topramcopy = .;
45        . += 0x300;
46        _stackend = .;
47     } > DRAM
49     .bss :
50     {
51        _edata = .;
52         *(.bss)
53         *(COMMON)
54        _end = .;
55     } > DRAM
57     .mp3buf :
58     {
59         _mp3buf = .;
60     } > DRAM
62     .mp3end 0x09200000 - 0x300:
63     {
64         _mp3end = .;
65     } > DRAM
67     .topram : AT ( _topramcopy ) {
68         _topramstart = .;
69         *(.topcode)
70         _topramend = .;
71     } > DRAM
73     .iram 0xf000000 : AT ( _iramcopy )
74     {
75         _iramstart = .;
76         *(.icode)
77         *(.idata)
78         _iramend = .;
79     } > IRAM