diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-11-27 23:55:13 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-11-27 23:55:13 +0000 |
commit | dbff1f20eec246d9c9f720b1fa64696fd7671737 (patch) | |
tree | 0a8a73832532bc6b194d5b74f789ba501998e651 /firmware/decompressor/link.lds | |
parent | 4923f49c6f89b751c89678d328d6b5adb7d7bcfb (diff) | |
download | rockbox-dbff1f20eec246d9c9f720b1fa64696fd7671737.tar.gz rockbox-dbff1f20eec246d9c9f720b1fa64696fd7671737.zip |
Archos targets: Self-extractor for on-disk firmware images to work around the file size limit. Re-uses rockbox.ucl. Not yet integrated with build system.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8089 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/decompressor/link.lds')
-rwxr-xr-x | firmware/decompressor/link.lds | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/firmware/decompressor/link.lds b/firmware/decompressor/link.lds new file mode 100755 index 0000000000..9cb4be8830 --- /dev/null +++ b/firmware/decompressor/link.lds | |||
@@ -0,0 +1,74 @@ | |||
1 | OUTPUT_FORMAT(elf32-sh) | ||
2 | |||
3 | #define DRAMORIG 0x09000000 | ||
4 | #define DRAMSIZE (MEMORYSIZE * 0x00100000) | ||
5 | #define IRAMORIG 0x0f000000 | ||
6 | #define IRAMSIZE 0x00001000 | ||
7 | |||
8 | MEMORY | ||
9 | { | ||
10 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE | ||
11 | DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE | ||
12 | } | ||
13 | |||
14 | SECTIONS | ||
15 | { | ||
16 | .vectors : | ||
17 | { | ||
18 | _loadaddress = .; | ||
19 | _dramend = . + DRAMSIZE; | ||
20 | *(.vectors) | ||
21 | . = ALIGN(0x200); | ||
22 | } > DRAM | ||
23 | |||
24 | .text : | ||
25 | { | ||
26 | *(.start) | ||
27 | *(.text) | ||
28 | . = ALIGN(0x4); | ||
29 | } > DRAM | ||
30 | |||
31 | .rodata : | ||
32 | { | ||
33 | *(.rodata*) | ||
34 | *(.rodata.str1.1) | ||
35 | *(.rodata.str1.4) | ||
36 | . = ALIGN(0x4); | ||
37 | } > DRAM | ||
38 | |||
39 | .data : | ||
40 | { | ||
41 | *(.data) | ||
42 | . = ALIGN(0x4); | ||
43 | _imgstart = .; | ||
44 | *(.image) | ||
45 | . = ALIGN(0x4); | ||
46 | _imgend = .; | ||
47 | _iramcopy = .; | ||
48 | } > DRAM | ||
49 | |||
50 | .iram IRAMORIG : AT ( _iramcopy ) | ||
51 | { | ||
52 | _iramstart = .; | ||
53 | *(.icode) | ||
54 | *(.idata) | ||
55 | . = ALIGN(0x4); | ||
56 | _iramend = .; | ||
57 | } > IRAM | ||
58 | |||
59 | .stack : | ||
60 | { | ||
61 | _stackbegin = .; | ||
62 | *(.stack) | ||
63 | . += 0x0800; | ||
64 | _stackend = .; | ||
65 | } > IRAM | ||
66 | |||
67 | .bss : | ||
68 | { | ||
69 | _edata = .; | ||
70 | *(.bss) | ||
71 | . = ALIGN(0x4); | ||
72 | _end = .; | ||
73 | } > DRAM | ||
74 | } | ||