Fixed red build
[kugel-rb.git] / firmware / gdb.lds
blob2055a6370169e364f028cf764ea068007aa062c0
1 ENTRY(start)
2 OUTPUT_FORMAT(elf32-sh)
3 INPUT(crt0.o)
5 MEMORY
7    DRAM : ORIGIN = 0x09010000, LENGTH = 0x1f0000
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     .heap :
58     {
59         _poolstart = .;
60         . = 0x20000;
61         _poolend = .;
62     } > DRAM
64     .mp3buf :
65     {
66         _mp3buf = .;
67     } > DRAM
69     .mp3end 0x09200000 - 0x300:
70     {
71         _mp3end = .;
72     } > DRAM
74     .topram : AT ( _topramcopy ) {
75         _topramstart = .;
76         *(.topcode)
77         _topramend = .;
78     } > DRAM
80     .iram 0xf000000 : AT ( _iramcopy )
81     {
82         _iramstart = .;
83         *(.icode)
84         *(.idata)
85         _iramend = .;
86     } > IRAM