summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/iriver/app.lds
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/coldfire/iriver/app.lds')
-rw-r--r--firmware/target/coldfire/iriver/app.lds139
1 files changed, 0 insertions, 139 deletions
diff --git a/firmware/target/coldfire/iriver/app.lds b/firmware/target/coldfire/iriver/app.lds
deleted file mode 100644
index 56ccfca509..0000000000
--- a/firmware/target/coldfire/iriver/app.lds
+++ /dev/null
@@ -1,139 +0,0 @@
1#include "config.h"
2
3ENTRY(start)
4
5OUTPUT_FORMAT(elf32-m68k)
6STARTUP(target/coldfire/crt0.o)
7
8#define PLUGINSIZE PLUGIN_BUFFER_SIZE
9#define CODECSIZE CODEC_SIZE
10
11#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE
12
13#define DRAMORIG 0x31000000
14#define IRAMORIG 0x10000000
15#define IRAMSIZE 0xc000
16
17/* End of the audio buffer, where the codec buffer starts */
18#define ENDAUDIOADDR (DRAMORIG + DRAMSIZE)
19
20/* Where the codec buffer ends, and the plugin buffer starts */
21#define ENDADDR (ENDAUDIOADDR + CODECSIZE)
22
23MEMORY
24{
25 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
26 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
27}
28
29SECTIONS
30{
31 .vectors :
32 {
33 loadaddress = .;
34 _loadaddress = .;
35 KEEP(*(.resetvectors));
36 *(.resetvectors);
37 KEEP(*(.vectors));
38 *(.vectors);
39 } > DRAM
40
41 .text :
42 {
43 . = ALIGN(0x200);
44 *(.init.text)
45 *(.text*)
46 . = ALIGN(0x4);
47 } > DRAM
48
49 .rodata :
50 {
51 *(.rodata) /* problems without this, dunno why */
52 *(.rodata*)
53 *(.rodata.str1.1)
54 *(.rodata.str1.4)
55 . = ALIGN(0x4);
56
57 /* Pseudo-allocate the copies of the data sections */
58 _datacopy = .;
59 } > DRAM
60
61 /* TRICK ALERT! For RAM execution, we put the .data section at the
62 same load address as the copy. Thus, we don't waste extra RAM
63 when we don't actually need the copy. */
64 .data : AT ( _datacopy )
65 {
66 _datastart = .;
67 *(.data*)
68 . = ALIGN(0x4);
69 _dataend = .;
70 } > DRAM
71
72 /DISCARD/ :
73 {
74 *(.eh_frame)
75 }
76
77 .iram IRAMORIG :
78 {
79 _iramstart = .;
80 *(.icode)
81 *(.irodata)
82 *(.idata)
83 _iramend = .;
84 } > IRAM AT> DRAM
85
86 _iramcopy = LOADADDR(.iram);
87 _noloaddram = LOADADDR(.iram);
88
89 .ibss (NOLOAD) :
90 {
91 _iedata = .;
92 *(.ibss)
93 . = ALIGN(0x4);
94 _iend = .;
95 } > IRAM
96
97 .stack (NOLOAD) :
98 {
99 *(.stack)
100 stackbegin = .;
101 . += 0x2000;
102 stackend = .;
103 } > IRAM
104
105 .bss _noloaddram (NOLOAD) :
106 {
107 _edata = .;
108 *(.bss*)
109 *(COMMON)
110 . = ALIGN(0x4);
111 _end = .;
112 } > DRAM
113
114 .audiobuf (NOLOAD) :
115 {
116 . = ALIGN(4);
117 _audiobuffer = .;
118 audiobuffer = .;
119 } > DRAM
120
121 .audiobufend ENDAUDIOADDR (NOLOAD) :
122 {
123 audiobufend = .;
124 _audiobufend = .;
125 } > DRAM
126
127 .codec ENDAUDIOADDR (NOLOAD) :
128 {
129 codecbuf = .;
130 _codecbuf = .;
131 }
132
133 .plugin ENDADDR (NOLOAD) :
134 {
135 _pluginbuf = .;
136 pluginbuf = .;
137 }
138}
139