feat(adapter-riscv): boot on QEMU virt with UART hello world
This commit is contained in:
36
crates/adapter-riscv/linker.ld
Normal file
36
crates/adapter-riscv/linker.ld
Normal 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 = .;
|
||||
}
|
||||
Reference in New Issue
Block a user