From 05a7f14f8dbf46fa64c035127ff1e04cfffb841b Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Fri, 15 Sep 2006 11:11:16 +0000 Subject: 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 --- apps/plugins/zxbox/archos.lds | 47 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 apps/plugins/zxbox/archos.lds (limited to 'apps/plugins/zxbox/archos.lds') 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 @@ +#include "config.h" + +/* linker script for chessbox as an overlay, + * only used/ necessary for SH-based archos targets */ + +OUTPUT_FORMAT(elf32-sh) + +#define DRAMORIG 0x09000000 +#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE + +#define OVERLAY_LENGTH 0x80000 +#define OVERLAY_ORIGIN (DRAMORIG + (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - OVERLAY_LENGTH) + +MEMORY +{ + OVERLAY_RAM : ORIGIN = OVERLAY_ORIGIN, LENGTH = OVERLAY_LENGTH +} + +SECTIONS +{ + .header : { + _plugin_start_addr = .; + *(.header) + } > OVERLAY_RAM + + .text : { + *(.text) + *(.text.*) + } > OVERLAY_RAM + + .rodata : { + *(.rodata) + *(.rodata.*) + } > OVERLAY_RAM + + .data : { + *(.data) + } > OVERLAY_RAM + + .bss : { + *(.bss) + *(.bss.*) + *(COMMON) + . = ALIGN(0x4); + _plugin_end_addr = .; + } > OVERLAY_RAM +} -- cgit v1.2.3