rvc/bare_metal_test/riscv32.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
439 B
Plaintext

MEMORY
{
RAM : ORIGIN = 0x80000000, LENGTH = 60M
}
_estack = ORIGIN(RAM) + LENGTH(RAM);
SECTIONS
{
.text :
{
. = ALIGN(4);
*(.entry)
*(.text)
*(.text*)
*(.rodata)
*(.rodata*)
} >RAM
.data :
{
. = ALIGN(4);
*(.data)
*(.data*)
} >RAM
.bss :
{
. = ALIGN(4);
*(.bss)
*(.bss*)
*(COMMON)
} >RAM
}