From 37183be69ce68e3f9ecaf12ce668d7e21229d8f0 Mon Sep 17 00:00:00 2001 From: Mustapha Senhaji Date: Fri, 20 Feb 2009 23:14:09 +0000 Subject: FS#9901 by Joshua Simmons for the Goban plugin: Goban overlay for the Archos targets. This is a first try to enable this plugin for low memory targets like our old archoses :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20069 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/goban/archos.lds | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 apps/plugins/goban/archos.lds (limited to 'apps/plugins/goban/archos.lds') diff --git a/apps/plugins/goban/archos.lds b/apps/plugins/goban/archos.lds new file mode 100644 index 0000000000..c17346ff0b --- /dev/null +++ b/apps/plugins/goban/archos.lds @@ -0,0 +1,43 @@ +#include "config.h" + +/* linker script for goban as an overlay */ + +OUTPUT_FORMAT(elf32-sh) + +#define DRAMORIG 0x09000000 +#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE + +#define OVERLAY_LENGTH 0x10000 +#define OVERLAY_ORIGIN (DRAMORIG + (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - OVERLAY_LENGTH) + +MEMORY +{ + OVERLAY_RAM : ORIGIN = OVERLAY_ORIGIN, LENGTH = OVERLAY_LENGTH +} + +SECTIONS +{ + .header : { + _plugin_start_addr = .; + KEEP(*(.header)) + } > OVERLAY_RAM + + .text : { + *(.text*) + } > OVERLAY_RAM + + .rodata : { + *(.rodata*) + } > OVERLAY_RAM + + .data : { + *(.data*) + } > OVERLAY_RAM + + .bss : { + *(.bss*) + *(COMMON) + . = ALIGN(0x4); + _plugin_end_addr = .; + } > OVERLAY_RAM +} -- cgit v1.2.3