FS#9901 by Joshua Simmons for the Goban plugin: Goban overlay for the Archos targets.
[kugel-rb.git] / apps / plugins / goban / archos.lds
blobc17346ff0b63bf2b6ec3d9e6477dc2daf2e933bb
1 #include "config.h"
3 /* linker script for goban as an overlay */
5 OUTPUT_FORMAT(elf32-sh)
7 #define DRAMORIG 0x09000000
8 #define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
10 #define OVERLAY_LENGTH 0x10000
11 #define OVERLAY_ORIGIN (DRAMORIG + (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - OVERLAY_LENGTH)
13 MEMORY
15    OVERLAY_RAM : ORIGIN = OVERLAY_ORIGIN, LENGTH = OVERLAY_LENGTH
18 SECTIONS
20     .header : {
21         _plugin_start_addr = .;
22         KEEP(*(.header))
23     } > OVERLAY_RAM
25     .text : {
26         *(.text*)
27     } > OVERLAY_RAM
29     .rodata : {
30         *(.rodata*)
31     } > OVERLAY_RAM
33     .data : {
34         *(.data*)
35     } > OVERLAY_RAM
37     .bss : {
38         *(.bss*)
39         *(COMMON)
40         . = ALIGN(0x4);
41         _plugin_end_addr = .;
42     } > OVERLAY_RAM