Cleans library directory

This commit is contained in:
2026-03-21 21:56:22 +01:00
parent fadecc7c95
commit 897775f63a
14 changed files with 253 additions and 41 deletions

35
user.ld Normal file
View File

@@ -0,0 +1,35 @@
/*
* ld directives the for barmetal RISCV
*/
OUTPUT_ARCH(riscv)
ENTRY(_start)
MEMORY {
RAM (wxa) : ORIGIN = 0x0, LENGTH = 512M
}
SECTIONS {
. = 0x0;
.text : {
KEEP(*(.text._start))
*(.text .text.*)
} > RAM
.rodata : ALIGN(8) {
*(.rodata .rodata.*)
} > RAM
.data : ALIGN(8) {
*(.data .data.*)
} > RAM
.bss : ALIGN(8) {
__bss_start = .;
*(.bss .bss.*)
__bss_end = .;
} > RAM
_heap_start = ALIGN(8);
_heap_end = ORIGIN(RAM) + LENGTH(RAM);
}