mirror of
https://github.com/j-core/j-core-ice40.git
synced 2026-02-27 09:09:32 +00:00
58 lines
846 B
Plaintext
58 lines
846 B
Plaintext
/**************************************
|
|
SuperH (SH-2) C Compiler Linker Script
|
|
**************************************/
|
|
|
|
OUTPUT_FORMAT("elf32-sh")
|
|
OUTPUT_ARCH(sh)
|
|
|
|
MEMORY
|
|
{
|
|
ram : o = 0x00000000, l = 0x7d00
|
|
stack : o = 0x00007d00, l = 0x0300
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
.text : {
|
|
*(.vect)
|
|
*(.text)
|
|
*(.strings)
|
|
_etext = . ;
|
|
} > ram
|
|
|
|
.tors : {
|
|
___ctors = . ;
|
|
*(.ctors)
|
|
___ctors_end = . ;
|
|
___dtors = . ;
|
|
*(.dtors)
|
|
___dtors_end = . ;
|
|
} > ram
|
|
|
|
.rodata : {
|
|
*(.rodata*)
|
|
} >ram
|
|
|
|
__idata_start = ADDR(.text) + SIZEOF(.text) + SIZEOF(.tors) + SIZEOF(.rodata);
|
|
.data : AT(__idata_start) {
|
|
__idata_start = .;
|
|
_sdata = . ;
|
|
*(.data)
|
|
_edata = . ;
|
|
} > ram
|
|
__idata_end = __idata_start + SIZEOF(.data);
|
|
|
|
.bss : {
|
|
_bss_start = .;
|
|
*(.bss)
|
|
*(COMMON)
|
|
_end = .;
|
|
} >ram
|
|
|
|
.stack :
|
|
{
|
|
_stack = .;
|
|
*(.stack)
|
|
} > stack
|
|
}
|