feat(adapter-riscv): boot on QEMU virt with UART hello world

This commit is contained in:
2026-10-18 01:46:47 +02:00
parent dcadb83088
commit 44a0ead7f2
6 changed files with 182 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
OUTPUT_ARCH(riscv)
ENTRY(_start)
SECTIONS {
. = 0x80200000;
.text : {
*(.text.entry)
*(.text .text.*)
}
. = ALIGN(4096);
.rodata : {
*(.rodata .rodata.*)
}
. = ALIGN(4096);
.data : {
*(.data .data.*)
}
. = ALIGN(4096);
.bss : {
_bss_start = .;
*(.bss .bss.*)
*(.sbss .sbss.*)
_bss_end = .;
}
. = ALIGN(4096);
_stack_bottom = .;
. += 0x10000;
_stack_top = .;
_heap_start = .;
}