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.
32 lines
556 B
Plaintext
32 lines
556 B
Plaintext
OUTPUT_ARCH(riscv)
|
|
ENTRY(_start)
|
|
|
|
/*设置用户程序链接的基础起始位置为0x80400000*/
|
|
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*)
|
|
}
|
|
} |