first commit

This commit is contained in:
Lorenzo Torres 2026-01-30 16:21:31 +01:00
commit 6f76f9dd9d
9 changed files with 1071 additions and 0 deletions

33
linker.ld Normal file
View file

@ -0,0 +1,33 @@
OUTPUT_ARCH(riscv)
ENTRY(_start)
MEMORY
{
RAM (rwx) : ORIGIN = 0x80200000, LENGTH = 126M
}
SECTIONS
{
.text : {
*(.text.init)
*(.text .text.*)
} > RAM
.rodata : {
*(.rodata .rodata.*)
} > RAM
.data : {
*(.data .data.*)
} > RAM
.bss : {
__bss_start = .;
*(.bss .bss.*)
*(COMMON)
__bss_end = .;
} > RAM
. = ALIGN(16);
__stack_top = . + 0x10000;
}