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 CONFIG_CPU==PP5020
126 #define DRAMORIG 0x00000000 + STUBOFFSET
127 #define IRAMORIG 0x40000000
128 #define IRAMSIZE 0xc000
129 #elif CONFIG_CPU==PNX0101
130 #define DRAMORIG 0x24000000 + STUBOFFSET
131 #define IRAMORIG 0x400100
132 #define IRAMSIZE 0x7f00
134 #define DRAMORIG 0x09000000 + STUBOFFSET
135 #define IRAMORIG 0x0f000000
136 #define IRAMSIZE 0x1000
139 /* End of the audio buffer, where the codec buffer starts */
140 #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE)
142 /* Where the codec buffer ends, and the plugin buffer starts */
143 #define ENDADDR (ENDAUDIOADDR + CODECSIZE)
147 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
148 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
157 KEEP(*(.resetvectors));
177 *(.rodata) /* problems without this, dunno why */
183 /* Pseudo-allocate the copies of the data sections */
187 /* TRICK ALERT! For RAM execution, we put the .data section at the
188 same load address as the copy. Thus, we don't waste extra RAM
189 when we don't actually need the copy. */
190 .data : AT ( _datacopy )
204 .iram IRAMORIG : AT ( _iramcopy)
221 #if defined(CPU_COLDFIRE) || defined(CPU_ARM)
230 /* TRICK ALERT! We want 0x2000 bytes of stack, but we set the section
231 size smaller, and allow the stack to grow into the .iram copy */
232 .stack ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram):
235 _stackbegin = . - SIZEOF(.iram);
236 . += 0x2000 - SIZEOF(.iram);
241 #if defined(CPU_COLDFIRE) || defined(CPU_ARM)
242 .bss ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram):
260 .audiobufend ENDAUDIOADDR: