mirror of
https://github.com/PiMaker/rvc.git
synced 2024-11-22 12:10:09 +00:00
31 lines
424 B
Plaintext
31 lines
424 B
Plaintext
|
OUTPUT_ARCH( "riscv" )
|
||
|
|
||
|
ENTRY( _start )
|
||
|
|
||
|
MEMORY
|
||
|
{
|
||
|
ram (rwx) : ORIGIN = 0x80400000, LENGTH = 0x800000
|
||
|
}
|
||
|
|
||
|
SECTIONS
|
||
|
{
|
||
|
.kernel : {
|
||
|
*(.start_here)
|
||
|
*(.text .text.*)
|
||
|
*(.rodata .rodata.*)
|
||
|
*(.data .data.*)
|
||
|
} > ram
|
||
|
|
||
|
.stack (NOLOAD) : {
|
||
|
. = . + 0x20000;
|
||
|
PROVIDE(_end_stack = .);
|
||
|
} > ram
|
||
|
|
||
|
.heap (NOLOAD) : {
|
||
|
PROVIDE(_begin_heap = .);
|
||
|
. = . + 0x40000;
|
||
|
PROVIDE(_end_heap = .);
|
||
|
} > ram
|
||
|
|
||
|
}
|