2005-03-02 23:49:38 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
/* linker script for rockboy as an overlay,
|
|
|
|
* only used/ necessary for SH-based archos targets */
|
|
|
|
|
|
|
|
OUTPUT_FORMAT(elf32-sh)
|
|
|
|
|
|
|
|
#define DRAMORIG 0x09000000
|
2005-06-27 21:23:03 +00:00
|
|
|
#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
|
2005-03-02 23:49:38 +00:00
|
|
|
|
|
|
|
#define OVERLAY_LENGTH 0x68000
|
|
|
|
#define OVERLAY_ORIGIN (DRAMORIG + (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - OVERLAY_LENGTH)
|
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
OVERLAY_RAM : ORIGIN = OVERLAY_ORIGIN, LENGTH = OVERLAY_LENGTH
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.header : {
|
2006-01-16 18:51:12 +00:00
|
|
|
_plugin_start_addr = .;
|
2008-01-05 12:45:12 +00:00
|
|
|
KEEP(*(.header))
|
2005-03-02 23:49:38 +00:00
|
|
|
} > OVERLAY_RAM
|
|
|
|
|
|
|
|
.text : {
|
2007-05-08 12:28:34 +00:00
|
|
|
*(.text*)
|
2005-03-02 23:49:38 +00:00
|
|
|
} > OVERLAY_RAM
|
|
|
|
|
2006-01-08 23:45:29 +00:00
|
|
|
.rodata : {
|
2007-05-08 12:28:34 +00:00
|
|
|
*(.rodata*)
|
2006-01-08 23:45:29 +00:00
|
|
|
} > OVERLAY_RAM
|
|
|
|
|
2005-03-02 23:49:38 +00:00
|
|
|
.data : {
|
2007-05-08 12:28:34 +00:00
|
|
|
*(.data*)
|
2005-03-02 23:49:38 +00:00
|
|
|
} > OVERLAY_RAM
|
|
|
|
|
|
|
|
.bss : {
|
2007-05-08 12:28:34 +00:00
|
|
|
*(.bss*)
|
2006-01-08 23:45:29 +00:00
|
|
|
*(COMMON)
|
2005-03-02 23:49:38 +00:00
|
|
|
. = ALIGN(0x4);
|
2006-01-16 18:51:12 +00:00
|
|
|
_plugin_end_addr = .;
|
2005-03-02 23:49:38 +00:00
|
|
|
} > OVERLAY_RAM
|
|
|
|
}
|