summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/archos.lds
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/archos.lds')
-rwxr-xr-xapps/plugins/rockboy/archos.lds46
1 files changed, 46 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/archos.lds b/apps/plugins/rockboy/archos.lds
new file mode 100755
index 0000000000..23d03c6297
--- /dev/null
+++ b/apps/plugins/rockboy/archos.lds
@@ -0,0 +1,46 @@
1#include "config.h"
2
3/* linker script for rockboy as an overlay,
4 * only used/ necessary for SH-based archos targets */
5
6OUTPUT_FORMAT(elf32-sh)
7
8#define DRAMORIG 0x09000000
9#define PLUGIN_LENGTH 0x8000
10
11#define OVERLAY_LENGTH 0x68000
12#define OVERLAY_ORIGIN (DRAMORIG + (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - OVERLAY_LENGTH)
13
14MEMORY
15{
16 OVERLAY_RAM : ORIGIN = OVERLAY_ORIGIN, LENGTH = OVERLAY_LENGTH
17}
18
19SECTIONS
20{
21 .header : {
22 _ovl_start_addr = .;
23 *(.header)
24 } > OVERLAY_RAM
25
26 .text : {
27 *(.entry)
28 *(.text)
29 } > OVERLAY_RAM
30
31 .data : {
32 *(.data)
33 } > OVERLAY_RAM
34
35 .bss : {
36 *(.bss)
37 } > OVERLAY_RAM
38
39 .rodata : {
40 *(.rodata)
41 *(.rodata.str1.1)
42 *(.rodata.str1.4)
43 . = ALIGN(0x4);
44 _ovl_end_addr = .;
45 } > OVERLAY_RAM
46}