6 OUTPUT_FORMAT(elf32-m68k)
7 INPUT(target/coldfire/crt0.o)
9 OUTPUT_FORMAT(elf32-littlearm)
10 INPUT(target/arm/crt0-pp.o)
11 #elif defined(CPU_ARM)
12 OUTPUT_FORMAT(elf32-littlearm)
13 INPUT(target/arm/crt0.o)
14 #elif CONFIG_CPU == SH7034
15 OUTPUT_FORMAT(elf32-sh)
16 INPUT(target/sh/crt0.o)
18 OUTPUT_FORMAT(elf32-sh)
24 #define PLUGINSIZE PLUGIN_BUFFER_SIZE
26 #define PLUGINSIZE 0x8000
30 #ifdef IRIVER_H100_SERIES
31 #define CODECSIZE CODEC_SIZE
32 #define DRAMORIG 0x31000000
33 #define IRAMORIG 0x10000000
34 #define IRAMSIZE 0xc000
35 #define FLASHORIG 0x00100028
36 #define FLASHSIZE 0x000eff80
38 #define DRAMORIG 0x09000000
39 #define IRAMORIG 0x0f000000
40 #define IRAMSIZE 0x1000
41 #define FLASHORIG 0x02000000 + ROM_START
42 #define FLASHSIZE 256K - ROM_START
46 #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE
47 /* Where the codec buffer ends, and the plugin buffer starts */
48 #define ENDADDR (ENDAUDIOADDR + CODECSIZE)
50 #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE
51 /* Where the audio buffer ends, and the plugin buffer starts */
52 #define ENDADDR ENDAUDIOADDR
55 /* End of the audio buffer, where the codec/plugin buffer starts */
56 #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE)
60 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
61 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
62 FLASH : ORIGIN = FLASHORIG, LENGTH = FLASHSIZE
68 /* place flash link address first, so the plugin can check */
70 /* followed by the start address, the first vector takes care of this. */
71 /* If we ever place the table elsewhere, put a constant here. */
79 .data : AT ( _datacopy )
90 . = ALIGN(0x10); /* Maintain proper alignment for .text section */
98 /* TRICK ALERT! Newer versions of the linker don't allow output sections
99 to overlap even if one of them is empty, so advance the location pointer
101 .text LOADADDR(.data) + SIZEOF(.data) :
117 .iram IRAMORIG : AT ( _iramcopy )
142 #if IRAMSIZE > 0x1000
149 .bss ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram):
168 .audiobufend ENDAUDIOADDR:
170 .audiobufend ENDADDR: