mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-26 19:33:37 +04:00
53 lines
818 B
Plaintext
53 lines
818 B
Plaintext
OUTPUT_ARCH(riscv)
|
|
ENTRY(_start)
|
|
BASE_ADDRESS = 0x80020000;
|
|
|
|
SECTIONS
|
|
{
|
|
. = BASE_ADDRESS;
|
|
skernel = .;
|
|
|
|
stext = .;
|
|
.text : {
|
|
*(.text.entry)
|
|
. = ALIGN(4K);
|
|
strampoline = .;
|
|
*(.text.trampoline);
|
|
. = ALIGN(4K);
|
|
*(.text .text.*)
|
|
}
|
|
|
|
. = ALIGN(4K);
|
|
etext = .;
|
|
srodata = .;
|
|
.rodata : {
|
|
*(.rodata .rodata.*)
|
|
*(.srodata .srodata.*)
|
|
}
|
|
|
|
. = ALIGN(4K);
|
|
erodata = .;
|
|
sdata = .;
|
|
.data : {
|
|
*(.data .data.*)
|
|
*(.sdata .sdata.*)
|
|
}
|
|
|
|
. = ALIGN(4K);
|
|
edata = .;
|
|
sbss_with_stack = .;
|
|
.bss : {
|
|
*(.bss.stack)
|
|
sbss = .;
|
|
*(.bss .bss.*)
|
|
*(.sbss .sbss.*)
|
|
}
|
|
|
|
. = ALIGN(4K);
|
|
ebss = .;
|
|
ekernel = .;
|
|
|
|
/DISCARD/ : {
|
|
*(.eh_frame)
|
|
}
|
|
} |