2006-02-24 00:51:37 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
2006-04-15 11:27:47 +00:00
|
|
|
/* linker script for chessbox as an overlay,
|
2006-02-24 00:51:37 +00:00
|
|
|
* only used/ necessary for SH-based archos targets */
|
|
|
|
|
|
|
|
OUTPUT_FORMAT(elf32-sh)
|
|
|
|
|
|
|
|
#define DRAMORIG 0x09000000
|
|
|
|
#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
|
|
|
|
|
2006-04-15 11:27:47 +00:00
|
|
|
#define OVERLAY_LENGTH 0x30000
|
2006-02-24 00:51:37 +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 = .;
|
|
|
|
*(.header)
|
|
|
|
} > OVERLAY_RAM
|
|
|
|
|
|
|
|
.text : {
|
2007-05-08 12:28:34 +00:00
|
|
|
*(.text*)
|
2006-02-24 00:51:37 +00:00
|
|
|
} > OVERLAY_RAM
|
|
|
|
|
|
|
|
.rodata : {
|
2007-05-08 12:28:34 +00:00
|
|
|
*(.rodata*)
|
2006-02-24 00:51:37 +00:00
|
|
|
} > OVERLAY_RAM
|
|
|
|
|
|
|
|
.data : {
|
2007-05-08 12:28:34 +00:00
|
|
|
*(.data*)
|
2006-02-24 00:51:37 +00:00
|
|
|
} > OVERLAY_RAM
|
|
|
|
|
|
|
|
.bss : {
|
2007-05-08 12:28:34 +00:00
|
|
|
*(.bss*)
|
2006-02-24 00:51:37 +00:00
|
|
|
*(COMMON)
|
|
|
|
. = ALIGN(0x4);
|
|
|
|
_plugin_end_addr = .;
|
|
|
|
} > OVERLAY_RAM
|
|
|
|
}
|