From 40d99f434e50a1d3ad19750e663fead7cf08872e Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 24 Feb 2006 00:51:37 +0000 Subject: Made chessbox work on archos recorders and Ondios as an overlay. * Proper button handling for Ondio. * Some cleanup of the plugin SOURCES file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8822 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/chessbox/archos.lds | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 apps/plugins/chessbox/archos.lds (limited to 'apps/plugins/chessbox/archos.lds') diff --git a/apps/plugins/chessbox/archos.lds b/apps/plugins/chessbox/archos.lds new file mode 100755 index 0000000000..693acd6335 --- /dev/null +++ b/apps/plugins/chessbox/archos.lds @@ -0,0 +1,46 @@ +#include "config.h" + +/* linker script for rockboy 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 0x20000 +#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) + } > OVERLAY_RAM + + .rodata : { + *(.rodata) + *(.rodata.str1.1) + *(.rodata.str1.4) + } > OVERLAY_RAM + + .data : { + *(.data) + } > OVERLAY_RAM + + .bss : { + *(.bss) + *(COMMON) + . = ALIGN(0x4); + _plugin_end_addr = .; + } > OVERLAY_RAM +} -- cgit v1.2.3