summaryrefslogtreecommitdiff
path: root/apps/plugins/zxbox/archos.lds
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-09-15 11:11:16 +0000
committerDave Chapman <dave@dchapman.com>2006-09-15 11:11:16 +0000
commit05a7f14f8dbf46fa64c035127ff1e04cfffb841b (patch)
treec107a0038736337811de70dd0e48e670d35246a2 /apps/plugins/zxbox/archos.lds
parent1350d57751f30f1700912e6abaa1d845af973f75 (diff)
downloadrockbox-05a7f14f8dbf46fa64c035127ff1e04cfffb841b.tar.gz
rockbox-05a7f14f8dbf46fa64c035127ff1e04cfffb841b.zip
Initial commit of zxbox - a ZX Spectrum emulator ported by Anton Romanov. It theoretically runs on all targets, but I have not included it in the Archos builds because it is just too slow to be usable.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10950 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/zxbox/archos.lds')
-rw-r--r--apps/plugins/zxbox/archos.lds47
1 files changed, 47 insertions, 0 deletions
diff --git a/apps/plugins/zxbox/archos.lds b/apps/plugins/zxbox/archos.lds
new file mode 100644
index 0000000000..319b9eb626
--- /dev/null
+++ b/apps/plugins/zxbox/archos.lds
@@ -0,0 +1,47 @@
1#include "config.h"
2
3/* linker script for chessbox as an overlay,
4 * only used/ necessary for SH-based archos targets */
5
6OUTPUT_FORMAT(elf32-sh)
7
8#define DRAMORIG 0x09000000
9#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
10
11#define OVERLAY_LENGTH 0x80000
12#define OVERLAY_ORIGIN (DRAMORIG + (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - OVERLAY_LENGTH)
13
14MEMORY
15{
16 OVERLAY_RAM : ORIGIN = OVERLAY_ORIGIN, LENGTH = OVERLAY_LENGTH
17}
18
19SECTIONS
20{
21 .header : {
22 _plugin_start_addr = .;
23 *(.header)
24 } > OVERLAY_RAM
25
26 .text : {
27 *(.text)
28 *(.text.*)
29 } > OVERLAY_RAM
30
31 .rodata : {
32 *(.rodata)
33 *(.rodata.*)
34 } > OVERLAY_RAM
35
36 .data : {
37 *(.data)
38 } > OVERLAY_RAM
39
40 .bss : {
41 *(.bss)
42 *(.bss.*)
43 *(COMMON)
44 . = ALIGN(0x4);
45 _plugin_end_addr = .;
46 } > OVERLAY_RAM
47}