kernel/meta/targets/kernel-riscv32.ld

40 lines
670 B
Text

ENTRY(_start)
SECTIONS {
. = 0x80200000;
text_start_addr = .;
.text :{
KEEP(*(.text.boot));
*(.text .text.*);
}
text_end_addr = .;
. += CONSTANT(MAXPAGESIZE);
rodata_start_addr = .;
.rodata : ALIGN(4) {
*(.rodata .rodata.*);
}
rodata_end_addr = .;
. += CONSTANT(MAXPAGESIZE);
data_start_addr = .;
.data : ALIGN(4) {
*(.data .data.*);
}
.bss : ALIGN(4) {
__bss = .;
*(.bss .bss.* .sbss .sbss.*);
__bss_end = .;
}
data_end_addr = .;
. += CONSTANT(MAXPAGESIZE);
. = ALIGN(4);
. += 128 * 1024; /* 128KB */
__stack_top = .;
}