summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s5l8700/boot.lds
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/s5l8700/boot.lds')
-rw-r--r--firmware/target/arm/s5l8700/boot.lds54
1 files changed, 54 insertions, 0 deletions
diff --git a/firmware/target/arm/s5l8700/boot.lds b/firmware/target/arm/s5l8700/boot.lds
new file mode 100644
index 0000000000..757abaa11a
--- /dev/null
+++ b/firmware/target/arm/s5l8700/boot.lds
@@ -0,0 +1,54 @@
1#include "config.h"
2
3ENTRY(start)
4OUTPUT_FORMAT(elf32-littlearm)
5OUTPUT_ARCH(arm)
6STARTUP(target/arm/s5l8700/crt0.o)
7
8/* DRAMORIG is in fact 0x8000000 but remapped to 0x0 */
9#define DRAMORIG 0x0
10#define DRAMSIZE 16M
11#
12#define IRAMORIG 0x22000000
13#define IRAMSIZE 256K
14
15/* This is not available in all versions of the S5L8700 */
16#define FLASHORIG 0x24000000
17#define FLASHSIZE 1M
18
19SECTIONS
20{
21 . = IRAMORIG;
22
23 .text : {
24 *(.init.text)
25 *(.text*)
26 }
27
28 .data : {
29 *(.icode)
30 *(.irodata)
31 *(.idata)
32 *(.data*)
33 *(.ncdata*);
34 _dataend = . ;
35 }
36
37 .stack :
38 {
39 *(.stack)
40 _stackbegin = .;
41 stackbegin = .;
42 . += 0x2000;
43 _stackend = .;
44 stackend = .;
45 }
46
47 .bss : {
48 _edata = .;
49 *(.bss*);
50 *(.ibss);
51 *(.ncbss*);
52 _end = .;
53 }
54}