You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
493 B
Plaintext
31 lines
493 B
Plaintext
2 years ago
|
OUTPUT_ARCH(riscv)
|
||
|
ENTRY(_start)
|
||
|
|
||
|
BASE_ADDRESS = 0x80400000;
|
||
|
|
||
|
SECTIONS
|
||
|
{
|
||
|
. = BASE_ADDRESS;
|
||
|
.text : {
|
||
|
*(.text.entry)
|
||
|
*(.text .text.*)
|
||
|
}
|
||
|
.rodata : {
|
||
|
*(.rodata .rodata.*)
|
||
|
*(.srodata .srodata.*)
|
||
|
}
|
||
|
.data : {
|
||
|
*(.data .data.*)
|
||
|
*(.sdata .sdata.*)
|
||
|
}
|
||
|
.bss : {
|
||
|
start_bss = .;
|
||
|
*(.bss .bss.*)
|
||
|
*(.sbss .sbss.*)
|
||
|
end_bss = .;
|
||
|
}
|
||
|
/DISCARD/ : {
|
||
|
*(.eh_frame)
|
||
|
*(.debug*)
|
||
|
}
|
||
|
}
|