Fix typo.
[Rockbox.git] / firmware / decompressor / link.lds
blobd0e11c1094f76f1d3e1ff846bdc6d657fc49dc46
1 OUTPUT_FORMAT(elf32-sh)
3 #define DRAMORIG 0x09000000
4 #define DRAMSIZE (MEMORYSIZE * 0x00100000)
5 #define IRAMORIG 0x0f000000
6 #define IRAMSIZE 0x00001000
8 MEMORY
10         IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
11         DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
14 SECTIONS
16         .vectors :
17         {
18             _loadaddress = .;
19             _dramend = . + DRAMSIZE;
20                 *(.vectors)
21                 . = ALIGN(0x200);
22         } > DRAM
24         .text :
25         {
26                 *(.start)
27                 *(.text)
28                 . = ALIGN(0x4);
29         } > DRAM
31     .rodata :
32     {
33         *(.rodata*)
34         *(.rodata.str1.1)
35         *(.rodata.str1.4)
36         . = ALIGN(0x4);
37     } > DRAM
39         .data :
40         {
41                 *(.data)
42                 . = ALIGN(0x4);
43                 _iramcopy = .;
44         } > DRAM
46         .iram IRAMORIG : AT ( _iramcopy )
47         {
48                 _iramstart = .;
49                 *(.icode)
50                 *(.idata)
51                 . = ALIGN(0x4);
52                 _iramend = .;
53         } > IRAM
55         .stack :
56         {
57                 _stackbegin = .;
58                 *(.stack)
59         . += 0x0800;
60                 _stackend = .;
61         } > IRAM
63         .bss :
64         {
65                 _edata = .;
66                 *(.bss)
67                 . = ALIGN(0x4);
68                 _end = .;
69         } > DRAM