summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tcc77x/app.lds
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/tcc77x/app.lds')
-rw-r--r--firmware/target/arm/tcc77x/app.lds99
1 files changed, 0 insertions, 99 deletions
diff --git a/firmware/target/arm/tcc77x/app.lds b/firmware/target/arm/tcc77x/app.lds
deleted file mode 100644
index 991b7156fe..0000000000
--- a/firmware/target/arm/tcc77x/app.lds
+++ /dev/null
@@ -1,99 +0,0 @@
1#include "config.h"
2
3ENTRY(start)
4OUTPUT_FORMAT(elf32-littlearm)
5OUTPUT_ARCH(arm)
6STARTUP(target/arm/tcc77x/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 0x20000000
14#define IRAMORIG 0x00000000
15#define IRAMSIZE 64K
16
17
18/* End of the audio buffer, where the codec buffer starts */
19#define ENDAUDIOADDR (DRAMORIG + DRAMSIZE)
20
21/* Where the codec buffer ends, and the plugin buffer starts */
22#define ENDADDR (ENDAUDIOADDR + CODECSIZE)
23
24
25MEMORY
26{
27#ifdef TCCBOOT
28 DRAM : ORIGIN = DRAMORIG + DRAMSIZE - 0x100000, LENGTH = 0x100000
29#else
30 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
31#endif
32 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
33}
34
35SECTIONS
36{
37 .text : {
38 loadaddress = .;
39 _loadaddress = .;
40 . = ALIGN(0x200);
41 *(.init.text)
42 *(.text)
43 *(.text*)
44 *(.glue_7)
45 *(.glue_7t)
46 } > DRAM
47
48 .data : {
49 *(.icode)
50 *(.irodata)
51 *(.idata)
52 *(.data*)
53 *(.rodata.*)
54 *(.rodata)
55 . = ALIGN(0x4);
56 _dataend = . ;
57 } > DRAM
58
59 .stack :
60 {
61 *(.stack)
62 _stackbegin = .;
63 stackbegin = .;
64 . += 0x2000;
65 _stackend = .;
66 stackend = .;
67 } > DRAM
68
69 .bss : {
70 _edata = .;
71 *(.bss*);
72 *(.ibss);
73 *(COMMON)
74 _end = .;
75 } > DRAM
76 .audiobuf ALIGN(4) :
77 {
78 _audiobuffer = .;
79 audiobuffer = .;
80 } > DRAM
81
82 .audiobufend ENDAUDIOADDR:
83 {
84 audiobufend = .;
85 _audiobufend = .;
86 } > DRAM
87
88 .codec ENDAUDIOADDR:
89 {
90 codecbuf = .;
91 _codecbuf = .;
92 }
93
94 .plugin ENDADDR:
95 {
96 _pluginbuf = .;
97 pluginbuf = .;
98 }
99}