rvc/rust_raytrace/linker.ld
Stefan 93a50d7807 add rust_raytrace payload and image output
plus some minor fixes IIRC
2021-10-14 20:14:51 +02:00

31 lines
423 B
Plaintext

OUTPUT_ARCH( "riscv" )
ENTRY( _start )
MEMORY
{
ram (rwx) : ORIGIN = 0x80000000, LENGTH = 0x80000
}
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
}