Files
k-os/crates/adapter-riscv/linker.ld

37 lines
516 B
Plaintext

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 = .;
}