3 /* These output formats should be in the config-files */
6 OUTPUT_FORMAT(elf32-m68k)
8 OUTPUT_FORMAT(elf32-littlearm)
10 OUTPUT_FORMAT(elf32-sh)
14 #define STUBOFFSET 0x10000
19 #if CONFIG_CPU==S3C2440
21 #define DRAMSIZE (MEMORYSIZE * 0x100000) - 0x100 - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE - LCD_BUFFER_SIZE - TTB_SIZE
22 #elif CONFIG_CPU==DM320
24 #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE - LCD_BUFFER_SIZE
26 #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE
29 #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300)
34 #define DRAMORIG 0x31000000
35 #define IRAMORIG 0x1000c000
36 #define IRAMSIZE 0xc000
37 #elif defined(IAUDIO_X5) || defined(IAUDIO_M5)
38 #define DRAMORIG 0x31000000
39 #define IRAMORIG 0x10010000
40 #define IRAMSIZE 0x10000
42 #define DRAMORIG 0x00000000
43 #define IRAMORIG 0x4000c000
44 #define IRAMSIZE 0xc000
45 #elif CONFIG_CPU == PNX0101
46 #define DRAMORIG 0xc00000 + STUBOFFSET
47 #define IRAMORIG 0x407000
48 #define IRAMSIZE 0x9000
49 #elif CONFIG_CPU == S3C2440
50 #define DRAMORIG 0x100 + STUBOFFSET
51 #define IRAMORIG DRAMORIG
54 #elif CONFIG_CPU == IMX31L
55 #define DRAMORIG 0x80000000
56 #define IRAMORIG 0x1FFFC000
57 #define IRAMSIZE 0x4000
58 #elif CONFIG_CPU==DM320
59 #define DRAMORIG 0x00900000 + STUBOFFSET
60 #define IRAMORIG 0x00000100
61 #define IRAMSIZE 0x4000-0x100
63 #define DRAMORIG 0x09000000 + STUBOFFSET
66 #define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
68 #define CODEC_ORIGIN (DRAMORIG + (DRAMSIZE))
69 #define PLUGIN_ORIGIN (CODEC_ORIGIN + CODEC_SIZE)
72 #define THIS_LENGTH CODEC_SIZE
73 #define THIS_ORIGIN CODEC_ORIGIN
75 #define THIS_LENGTH PLUGIN_LENGTH
76 #define THIS_ORIGIN PLUGIN_ORIGIN
81 PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH
83 PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
90 _plugin_start_addr = .;
91 plugin_start_addr = .;
113 #if defined(IRAMSIZE)
123 #if defined(IRAMSIZE)
124 .iram IRAMORIG : AT ( iramcopy)
144 plugin_bss_start = .;
148 _plugin_end_addr = .;
152 /* Special trick to avoid a linker error when no other sections are
153 left after garbage collection (plugin not for this platform) */