diff options
Diffstat (limited to 'firmware/target/arm/s3c2440/boot.lds')
-rw-r--r-- | firmware/target/arm/s3c2440/boot.lds | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/firmware/target/arm/s3c2440/boot.lds b/firmware/target/arm/s3c2440/boot.lds new file mode 100644 index 0000000000..cc20fbe86f --- /dev/null +++ b/firmware/target/arm/s3c2440/boot.lds | |||
@@ -0,0 +1,50 @@ | |||
1 | #include "config.h" | ||
2 | |||
3 | ENTRY(start) | ||
4 | OUTPUT_FORMAT(elf32-littlearm) | ||
5 | OUTPUT_ARCH(arm) | ||
6 | INPUT(target/arm/s3c2440/crt0.o) | ||
7 | |||
8 | #define DRAMSIZE (MEMORYSIZE * 0x100000) | ||
9 | |||
10 | #define DRAMORIG 0x30000000 | ||
11 | #define IRAMORIG 0x40000000 | ||
12 | #define IRAMSIZE 4K | ||
13 | #define FLASHORIG 0x0000000 | ||
14 | #define FLASHSIZE 1M | ||
15 | |||
16 | SECTIONS | ||
17 | { | ||
18 | . = DRAMORIG + 0x1000000; | ||
19 | |||
20 | .text : { | ||
21 | *(.init.text) | ||
22 | *(.text*) | ||
23 | } | ||
24 | |||
25 | .data : { | ||
26 | *(.icode) | ||
27 | *(.irodata) | ||
28 | *(.idata) | ||
29 | *(.data*) | ||
30 | . = ALIGN(0x4); | ||
31 | _dataend = . ; | ||
32 | } | ||
33 | |||
34 | .stack : | ||
35 | { | ||
36 | *(.stack) | ||
37 | _stackbegin = .; | ||
38 | stackbegin = .; | ||
39 | . += 0x2000; | ||
40 | _stackend = .; | ||
41 | stackend = .; | ||
42 | } | ||
43 | .bss : { | ||
44 | _edata = .; | ||
45 | *(.bss*); | ||
46 | *(.ibss); | ||
47 | *(COMMON) | ||
48 | _end = .; | ||
49 | } | ||
50 | } | ||