summaryrefslogtreecommitdiff
path: root/firmware/app.lds
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/app.lds')
-rw-r--r--firmware/app.lds12
1 files changed, 8 insertions, 4 deletions
diff --git a/firmware/app.lds b/firmware/app.lds
index e17e5a97b9..feff264d39 100644
--- a/firmware/app.lds
+++ b/firmware/app.lds
@@ -7,7 +7,7 @@ INPUT(crt0.o)
7#elif CONFIG_CPU == TCC730 7#elif CONFIG_CPU == TCC730
8OUTPUT_FORMAT(elf32-calmrisc16) 8OUTPUT_FORMAT(elf32-calmrisc16)
9INPUT(crt0.o) 9INPUT(crt0.o)
10#elif CONFIG_CPU == PP5020 10#elif defined(CPU_ARM)
11OUTPUT_FORMAT(elf32-littlearm) 11OUTPUT_FORMAT(elf32-littlearm)
12OUTPUT_ARCH(arm) 12OUTPUT_ARCH(arm)
13INPUT(crt0.o) 13INPUT(crt0.o)
@@ -126,6 +126,10 @@ _pluginbuf = 0;
126#define DRAMORIG 0x00000000 + STUBOFFSET 126#define DRAMORIG 0x00000000 + STUBOFFSET
127#define IRAMORIG 0x40000000 127#define IRAMORIG 0x40000000
128#define IRAMSIZE 0xc000 128#define IRAMSIZE 0xc000
129#elif CONFIG_CPU==PNX0101
130#define DRAMORIG 0x24000000 + STUBOFFSET
131#define IRAMORIG 0x400100
132#define IRAMSIZE 0x7f00
129#else 133#else
130#define DRAMORIG 0x09000000 + STUBOFFSET 134#define DRAMORIG 0x09000000 + STUBOFFSET
131#define IRAMORIG 0x0f000000 135#define IRAMORIG 0x0f000000
@@ -161,7 +165,7 @@ SECTIONS
161 . = ALIGN(0x200); 165 . = ALIGN(0x200);
162 *(.init.text) 166 *(.init.text)
163 *(.text*) 167 *(.text*)
164#if CONFIG_CPU==PP5020 168#ifdef CPU_ARM
165 *(.glue_7) 169 *(.glue_7)
166 *(.glue_7t) 170 *(.glue_7t)
167#endif 171#endif
@@ -214,7 +218,7 @@ SECTIONS
214 _iend = .; 218 _iend = .;
215 } > IRAM 219 } > IRAM
216 220
217#if defined(CPU_COLDFIRE) || CONFIG_CPU==PP5020 221#if defined(CPU_COLDFIRE) || defined(CPU_ARM)
218 .stack : 222 .stack :
219 { 223 {
220 *(.stack) 224 *(.stack)
@@ -234,7 +238,7 @@ SECTIONS
234 } > DRAM 238 } > DRAM
235#endif 239#endif
236 240
237#if defined(CPU_COLDFIRE) || CONFIG_CPU==PP5020 241#if defined(CPU_COLDFIRE) || defined(CPU_ARM)
238 .bss ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram): 242 .bss ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram):
239#else 243#else
240 .bss : 244 .bss :