abstractaccelerator/testbench/asm/cmark_iccm.ld

22 lines
718 B
Plaintext
Raw Normal View History

2020-02-20 10:24:28 +08:00
OUTPUT_ARCH( "riscv" )
ENTRY(_start)
MEMORY {
EXTCODE : ORIGIN = 0, LENGTH = 0x10000
EXTDATA : ORIGIN = 0x10000, LENGTH = 0x10000
ICCM : ORIGIN = 0xee000000, LENGTH = 0x80000
DCCM : ORIGIN = 0xf0040000, LENGTH = 0x10000
2020-09-19 04:34:02 +08:00
CTL : ORIGIN = 0xfffffff0, LENGTH = 16
2021-01-28 01:36:43 +08:00
IO : ORIGIN = 0xd0580000, LENGTH = 0x1000
2020-02-20 10:24:28 +08:00
}
SECTIONS {
2021-01-28 01:36:43 +08:00
.text.init : {*(.text.init)} > EXTCODE
2020-02-20 10:24:28 +08:00
init_end = .;
2021-01-28 01:36:43 +08:00
.data.io : { *(.data.io) } > IO
2020-09-19 04:34:02 +08:00
.text : { *(.text) *(.text.startup)} > ICCM
2020-02-20 10:24:28 +08:00
text_end = .;
2020-09-19 04:34:02 +08:00
.data : { *(.*data) *(.rodata*) *(.sbss) STACK = ALIGN(16) + 0x1000;} > DCCM
.bss : { *(.bss)} > DCCM
.data.ctl : { LONG(ADDR(.text)); LONG(text_end); LONG(0xf0040000); LONG(STACK)}>CTL
2020-02-20 10:24:28 +08:00
}