mirror of
https://github.com/j-core/j-core-ice40.git
synced 2026-05-03 14:38:29 +00:00
Add in the test rom
This commit is contained in:
57
testrom/startup/sh.x
Normal file
57
testrom/startup/sh.x
Normal file
@@ -0,0 +1,57 @@
|
||||
/**************************************
|
||||
SuperH (SH-2) C Compiler Linker Script
|
||||
**************************************/
|
||||
|
||||
OUTPUT_FORMAT("elf32-sh")
|
||||
OUTPUT_ARCH(sh)
|
||||
|
||||
MEMORY
|
||||
{
|
||||
ram : o = 0x00000000, l = 0x3b00
|
||||
stack : o = 0x00003d00, 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
|
||||
}
|
||||
57
testrom/startup/sh32.x
Normal file
57
testrom/startup/sh32.x
Normal file
@@ -0,0 +1,57 @@
|
||||
/**************************************
|
||||
SuperH (SH-2) C Compiler Linker Script
|
||||
**************************************/
|
||||
|
||||
OUTPUT_FORMAT("elf32-sh")
|
||||
OUTPUT_ARCH(sh)
|
||||
|
||||
MEMORY
|
||||
{
|
||||
ram : o = 0x00000000, l = 0x1c00
|
||||
stack : o = 0x00001ffc, l = 0x03fc
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user