diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-05-31 08:48:06 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-05-31 08:48:06 +0000 |
commit | 02aadebd5f16740687d6a135581712a1719301c9 (patch) | |
tree | e873ff6cb21b88a4c9f5e197ac56ae843c65b6b2 /apps/plugins/zxbox/archos.lds | |
parent | 023cd578fad93a299424cf38bc85a64d0865decc (diff) | |
download | rockbox-02aadebd5f16740687d6a135581712a1719301c9.tar.gz rockbox-02aadebd5f16740687d6a135581712a1719301c9.zip |
Make ZXBox work on the m:robe 100, and fix the linker script and loader to make it work again on archos. Put Menu on F1 for recorders in order to avoid accidental poweroff on v1. ZXBox on archos is very slow, but that's not different from rockboy which is also included for recorders. (Patch by Marianne Arnold and me).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17666 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/zxbox/archos.lds')
-rw-r--r-- | apps/plugins/zxbox/archos.lds | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/apps/plugins/zxbox/archos.lds b/apps/plugins/zxbox/archos.lds index 319b9eb626..5b4db7dc3e 100644 --- a/apps/plugins/zxbox/archos.lds +++ b/apps/plugins/zxbox/archos.lds | |||
@@ -1,6 +1,6 @@ | |||
1 | #include "config.h" | 1 | #include "config.h" |
2 | 2 | ||
3 | /* linker script for chessbox as an overlay, | 3 | /* linker script for zxbox as an overlay, |
4 | * only used/ necessary for SH-based archos targets */ | 4 | * only used/ necessary for SH-based archos targets */ |
5 | 5 | ||
6 | OUTPUT_FORMAT(elf32-sh) | 6 | OUTPUT_FORMAT(elf32-sh) |
@@ -8,7 +8,7 @@ OUTPUT_FORMAT(elf32-sh) | |||
8 | #define DRAMORIG 0x09000000 | 8 | #define DRAMORIG 0x09000000 |
9 | #define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE | 9 | #define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE |
10 | 10 | ||
11 | #define OVERLAY_LENGTH 0x80000 | 11 | #define OVERLAY_LENGTH 0x48000 |
12 | #define OVERLAY_ORIGIN (DRAMORIG + (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - OVERLAY_LENGTH) | 12 | #define OVERLAY_ORIGIN (DRAMORIG + (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - OVERLAY_LENGTH) |
13 | 13 | ||
14 | MEMORY | 14 | MEMORY |
@@ -20,26 +20,23 @@ SECTIONS | |||
20 | { | 20 | { |
21 | .header : { | 21 | .header : { |
22 | _plugin_start_addr = .; | 22 | _plugin_start_addr = .; |
23 | *(.header) | 23 | KEEP(*(.header)) |
24 | } > OVERLAY_RAM | 24 | } > OVERLAY_RAM |
25 | 25 | ||
26 | .text : { | 26 | .text : { |
27 | *(.text) | 27 | *(.text*) |
28 | *(.text.*) | ||
29 | } > OVERLAY_RAM | 28 | } > OVERLAY_RAM |
30 | 29 | ||
31 | .rodata : { | 30 | .rodata : { |
32 | *(.rodata) | 31 | *(.rodata*) |
33 | *(.rodata.*) | ||
34 | } > OVERLAY_RAM | 32 | } > OVERLAY_RAM |
35 | 33 | ||
36 | .data : { | 34 | .data : { |
37 | *(.data) | 35 | *(.data*) |
38 | } > OVERLAY_RAM | 36 | } > OVERLAY_RAM |
39 | 37 | ||
40 | .bss : { | 38 | .bss : { |
41 | *(.bss) | 39 | *(.bss*) |
42 | *(.bss.*) | ||
43 | *(COMMON) | 40 | *(COMMON) |
44 | . = ALIGN(0x4); | 41 | . = ALIGN(0x4); |
45 | _plugin_end_addr = .; | 42 | _plugin_end_addr = .; |