5 OUTPUT_FORMAT(elf32-m68k)
6 INPUT(target/coldfire/crt0.o)
7 #elif defined (CPU_ARM)
8 OUTPUT_FORMAT(elf32-littlearm)
11 INPUT(target/arm/crt0-pp-bl.o)
12 #elif defined(OLYMPUS_MROBE_500)
13 INPUT(target/arm/tms320dm320/crt0.o)
14 #elif defined(CPU_TCC77X)
15 INPUT(target/arm/tcc77x/crt0.o)
17 INPUT(target/arm/crt0.o)
20 OUTPUT_FORMAT(elf32-sh)
21 INPUT(target/sh/crt0.o)
24 #define DRAMSIZE (MEMORYSIZE * 0x100000)
26 #ifdef IRIVER_H100_SERIES
27 #define DRAMORIG 0x31000000
28 #define IRAMORIG 0x10000000
29 #define IRAMSIZE 0x18000
30 #define FLASHORIG 0x001f0000
32 #elif defined(IRIVER_H300_SERIES)
33 #define DRAMORIG 0x31000000
34 #define IRAMORIG 0x10000000
35 #define IRAMSIZE 0x18000
36 #define FLASHORIG 0x003f0000
38 #elif defined(IAUDIO_X5) || defined(IAUDIO_M5)
39 #define DRAMORIG 0x31000000
40 #define IRAMORIG 0x10000000
41 #define IRAMSIZE 0x20000
42 #define FLASHORIG 0x00010000
44 #elif CONFIG_CPU == PP5020
45 #define DRAMORIG 0x10000000
46 #define IRAMORIG 0x40000000
47 #define IRAMSIZE 0x18000
48 #define FLASHORIG 0x001f0000
50 #elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
51 #define DRAMORIG 0x10000000
53 #define IRAMORIG 0x40000000
55 #define IRAMSIZE 0x20000
56 #define FLASHORIG 0x001f0000
58 #elif CONFIG_CPU == S3C2440
59 #define DRAMORIG 0x30000000
60 #define IRAMORIG 0x40000000
62 #define FLASHORIG 0x0000000
64 #elif CONFIG_CPU == DM320
65 #define DRAMORIG 0x00900000
66 #define IRAMORIG 0x00000000
68 #define FLASHORIG 0x00100000
70 #elif CONFIG_CPU == PP5002
71 #define DRAMORIG 0x28000000
72 #define IRAMORIG 0x40000000
73 #define IRAMSIZE 0x18000
74 #define FLASHORIG 0x001f0000
76 #elif CONFIG_CPU == IMX31L
77 #define DRAMORIG 0x80000000
78 #define IRAMORIG 0x1FFFC000
80 #define FLASHORIG 0x0000000
82 #elif defined(CPU_TCC77X)
83 #define DRAMORIG 0x20000000
84 #define IRAMORIG 0x00000000
86 #define FLASHORIG 0x0000000
89 #define DRAMORIG 0x09000000
90 #define IRAMORIG 0x0f000000
91 #define IRAMSIZE 0x1000
92 #define FLASHORIG 0x02000000 + ROM_START
93 #define FLASHSIZE 256K - ROM_START
96 #if defined(CPU_TCC77X)
100 DRAM : ORIGIN = DRAMORIG + DRAMSIZE - 0x100000, LENGTH = 0x100000
102 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
104 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
106 #elif !defined(CPU_PP) && (CONFIG_CPU!=S3C2440) && (CONFIG_CPU!=IMX31L)
109 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
110 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
111 FLASH : ORIGIN = FLASHORIG, LENGTH = FLASHSIZE
143 /* The bss section is too large for IRAM - we just move it 16MB into the
146 . = (DRAMORIG+16*1024*1024);
154 #elif (CONFIG_CPU==S3C2440)
156 . = DRAMORIG + 0x1000000;
189 #elif defined(CPU_TCC77X)
226 #elif (CONFIG_CPU==DM320)
228 . = DRAMORIG + 0x1000000;
242 *(.rodata) /* problems without this, dunno why */
248 /* Pseudo-allocate the copies of the data sections */
283 KEEP(*(.resetvectors));
289 _vectorscopy = LOADADDR(.vectors);
291 #elif (CONFIG_CPU==IMX31L)
330 #if defined(IAUDIO_X5) || defined(IAUDIO_M5)
336 .data : AT ( _datacopy )
339 KEEP(*(.resetvectors));
350 . = ALIGN(0x10); /* Maintain proper alignment for .text section */
353 /* TRICK ALERT! Newer versions of the linker don't allow output sections
354 to overlap even if one of them is empty, so advance the location pointer
356 .text LOADADDR(.data) + SIZEOF(.data) :
380 #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) \
381 || defined(IAUDIO_X5) || defined(IAUDIO_M5)
382 .bss DRAMORIG+0x800000:
392 #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) \
393 || defined(IAUDIO_X5) || defined(IAUDIO_M5)