5 OUTPUT_FORMAT(elf32-m68k)
7 #elif CONFIG_CPU == TCC730
8 OUTPUT_FORMAT(elf32-calmrisc16)
10 #elif defined(CPU_ARM)
11 OUTPUT_FORMAT(elf32-littlearm)
15 OUTPUT_FORMAT(elf32-sh)
19 #if CONFIG_CPU == TCC730
22 FIRMWARE : ORIGIN = LOADADDRESS, LENGTH = 256K
23 FLASH (RX) : ORIGIN = 0x000000, LENGTH = 1024K
24 ICMEM (RX) : ORIGIN = 0x3FC000, LENGTH = 32K
25 IMEM1 : ORIGIN = 0x200000, LENGTH = 32K
26 IMEM2 : ORIGIN = 0x210000, LENGTH = 16K
27 IMEM3 : ORIGIN = 0x220000, LENGTH = 32K
28 IMEM4 : ORIGIN = 0x230000, LENGTH = 16K
30 DRAM : ORIGIN = 0x000000, LENGTH = 0x3F0000
45 /* We start at 0x2000, to avoid overwriting Archos' loader datasegment.
46 * If it turns out that we won't call back the loader, this can be set to 0.
53 /* Data is put after BSS, to have all strings addresses > VIRT_PTR + VIRT_SIZE.
54 Strings are in rodata, so what we really assert is (.rodata > VIRT_PTR + VIRT_SIZE)
55 See settings.h for details */
78 _codesize = SIZEOF(.text);
80 _icodecopy = LOADADDR(.icode);
81 _icodestart = ADDR(.icode);
82 _icodesize = SIZEOF(.icode);
84 _datacopy = LOADADDR(.data);
85 _datastart = ADDR(.data);
86 _datasize = SIZEOF(.data);
89 _bssstart = ADDR(.bss);
90 _bsssize = (SIZEOF(.bss) + 1) & ~ 1;
92 _stackbegin = ADDR(.stack);
93 _stackend = ADDR(.stack) + SIZEOF(.stack);
95 _idatastart = ADDR(.idata);
97 /* FIXME: Where to put audio buffer? */
102 /* Plugins are not supported on the Gmini*/
109 #define PLUGINSIZE PLUGIN_BUFFER_SIZE
110 #define CODECSIZE CODEC_SIZE
114 #define STUBOFFSET 0x10000
119 #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE
121 #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300)
122 #define DRAMORIG 0x31000000 + STUBOFFSET
123 #define IRAMORIG 0x10000000
124 #define IRAMSIZE 0xc000
125 #elif defined(IAUDIO_X5)
126 #define DRAMORIG 0x31000000 + STUBOFFSET
127 #define IRAMORIG 0x10000000
128 #define IRAMSIZE 0xc000
129 #elif (CONFIG_CPU==PP5002) || (CONFIG_CPU==PP5020)
130 #define DRAMORIG 0x00000000 + STUBOFFSET
131 #define IRAMORIG 0x40000000
132 #define IRAMSIZE 0xc000
133 #elif CONFIG_CPU==PNX0101
134 #define DRAMORIG 0xc00000 + STUBOFFSET
135 #define IRAMORIG 0x400000
136 #define IRAMSIZE 0x8000
137 #elif CONFIG_CPU==S3C2440
138 #define DRAMORIG 0x30000000 + STUBOFFSET
139 #define IRAMORIG 0x40000000
142 #define DRAMORIG 0x09000000 + STUBOFFSET
143 #define IRAMORIG 0x0f000000
144 #define IRAMSIZE 0x1000
147 /* End of the audio buffer, where the codec buffer starts */
148 #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE)
150 /* Where the codec buffer ends, and the plugin buffer starts */
151 #define ENDADDR (ENDAUDIOADDR + CODECSIZE)
155 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
156 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
166 KEEP(*(.resetvectors));
192 *(.rodata) /* problems without this, dunno why */
198 /* Pseudo-allocate the copies of the data sections */
202 /* TRICK ALERT! For RAM execution, we put the .data section at the
203 same load address as the copy. Thus, we don't waste extra RAM
204 when we don't actually need the copy. */
205 .data : AT ( _datacopy )
226 _vectorscopy = LOADADDR(.vectors);
229 #if CONFIG_CPU==PNX0101
230 .iram IRAMORIG + SIZEOF(.vectors) :
242 _iramcopy = LOADADDR(.iram);
252 #if defined(CPU_COLDFIRE) || defined(CPU_ARM)
261 /* TRICK ALERT! We want 0x2000 bytes of stack, but we set the section
262 size smaller, and allow the stack to grow into the .iram copy */
263 .stack ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram):
266 _stackbegin = . - SIZEOF(.iram);
267 . += 0x2000 - SIZEOF(.iram);
272 #if defined(CPU_COLDFIRE)
273 .bss ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram):
274 #elif defined(CPU_ARM)
275 .bss ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram) + SIZEOF(.vectors):
293 .audiobufend ENDAUDIOADDR: