You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
739 B
44 lines
739 B
6 years ago
|
OUTPUT_ARCH(riscv)
|
||
|
ENTRY(_start)
|
||
|
|
||
|
SECTIONS {
|
||
|
/* Load programs at this address: "." means the current address */
|
||
|
. = 0x00800020;
|
||
|
|
||
|
.text : {
|
||
|
*(.text .stub .text.* .gnu.linkonce.t.*)
|
||
|
}
|
||
|
|
||
|
PROVIDE(etext = .); /* Define the 'etext' symbol to this value */
|
||
|
|
||
|
.rodata : {
|
||
|
*(.rodata .rodata.* .gnu.linkonce.r.*)
|
||
|
}
|
||
|
|
||
|
/* Adjust the address for the data segment to the next page */
|
||
|
. = ALIGN(0x1000);
|
||
|
|
||
|
/* The data segment */
|
||
|
.data : {
|
||
|
*(.data)
|
||
|
*(.data.*)
|
||
|
}
|
||
|
|
||
|
.sdata : {
|
||
|
*(.sdata)
|
||
|
*(.sdata.*)
|
||
|
}
|
||
|
|
||
|
PROVIDE(edata = .);
|
||
|
|
||
|
.bss : {
|
||
|
*(.bss)
|
||
|
}
|
||
|
|
||
|
PROVIDE(end = .);
|
||
|
|
||
|
/DISCARD/ : {
|
||
|
*(.eh_frame .note.GNU-stack .comment)
|
||
|
}
|
||
|
}
|