rvc/rust_raytrace/linker.ld
pi 134e85e485 add rng, rtc, networking, more CSR paravirt exts and fixes
honestly forgot what I added all over the last year or so, but here you
go, enjoy more cursed code
2022-11-25 23:11:56 +01:00

35 lines
481 B
Plaintext

OUTPUT_ARCH( "riscv" )
ENTRY( _start )
MEMORY
{
ram (rwx) : ORIGIN = 0x80000000, LENGTH = 0x100000
}
SECTIONS
{
.kernel : {
*(.start_here)
*(.text .text.*)
*(.rodata .rodata.*)
*(.data .data.*)
} > ram
.stack (NOLOAD) : {
. = . + 0x70000;
PROVIDE(_end_stack = .);
} > ram
.heap (NOLOAD) : {
. = . + 0x70000;
PROVIDE(_end_heap = .);
} > ram
.textbuf (NOLOAD) : {
. = . + 0x10000;
PROVIDE(_end_textbuf = .);
} > ram
}