2006-09-15 11:11:16 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
2008-05-31 08:48:06 +00:00
|
|
|
/* linker script for zxbox as an overlay,
|
2006-09-15 11:11:16 +00:00
|
|
|
* only used/ necessary for SH-based archos targets */
|
|
|
|
|
|
|
|
OUTPUT_FORMAT(elf32-sh)
|
|
|
|
|
|
|
|
#define DRAMORIG 0x09000000
|
|
|
|
#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
|
|
|
|
|
2008-05-31 08:48:06 +00:00
|
|
|
#define OVERLAY_LENGTH 0x48000
|
2006-09-15 11:11:16 +00:00
|
|
|
#define OVERLAY_ORIGIN (DRAMORIG + (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - OVERLAY_LENGTH)
|
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
OVERLAY_RAM : ORIGIN = OVERLAY_ORIGIN, LENGTH = OVERLAY_LENGTH
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.header : {
|
|
|
|
_plugin_start_addr = .;
|
2008-05-31 08:48:06 +00:00
|
|
|
KEEP(*(.header))
|
2006-09-15 11:11:16 +00:00
|
|
|
} > OVERLAY_RAM
|
|
|
|
|
|
|
|
.text : {
|
2008-05-31 08:48:06 +00:00
|
|
|
*(.text*)
|
2006-09-15 11:11:16 +00:00
|
|
|
} > OVERLAY_RAM
|
|
|
|
|
|
|
|
.rodata : {
|
2008-05-31 08:48:06 +00:00
|
|
|
*(.rodata*)
|
2006-09-15 11:11:16 +00:00
|
|
|
} > OVERLAY_RAM
|
|
|
|
|
|
|
|
.data : {
|
2008-05-31 08:48:06 +00:00
|
|
|
*(.data*)
|
2006-09-15 11:11:16 +00:00
|
|
|
} > OVERLAY_RAM
|
|
|
|
|
|
|
|
.bss : {
|
2008-05-31 08:48:06 +00:00
|
|
|
*(.bss*)
|
2006-09-15 11:11:16 +00:00
|
|
|
*(COMMON)
|
|
|
|
. = ALIGN(0x4);
|
|
|
|
_plugin_end_addr = .;
|
|
|
|
} > OVERLAY_RAM
|
|
|
|
}
|