summaryrefslogtreecommitdiff
path: root/apps/plugins/goban/archos.lds
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/goban/archos.lds')
-rw-r--r--apps/plugins/goban/archos.lds43
1 files changed, 43 insertions, 0 deletions
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 @@
1#include "config.h"
2
3/* linker script for goban as an overlay */
4
5OUTPUT_FORMAT(elf32-sh)
6
7#define DRAMORIG 0x09000000
8#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
9
10#define OVERLAY_LENGTH 0x10000
11#define OVERLAY_ORIGIN (DRAMORIG + (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - OVERLAY_LENGTH)
12
13MEMORY
14{
15 OVERLAY_RAM : ORIGIN = OVERLAY_ORIGIN, LENGTH = OVERLAY_LENGTH
16}
17
18SECTIONS
19{
20 .header : {
21 _plugin_start_addr = .;
22 KEEP(*(.header))
23 } > OVERLAY_RAM
24
25 .text : {
26 *(.text*)
27 } > OVERLAY_RAM
28
29 .rodata : {
30 *(.rodata*)
31 } > OVERLAY_RAM
32
33 .data : {
34 *(.data*)
35 } > OVERLAY_RAM
36
37 .bss : {
38 *(.bss*)
39 *(COMMON)
40 . = ALIGN(0x4);
41 _plugin_end_addr = .;
42 } > OVERLAY_RAM
43}