specifically one of the entires in bfd/cpu-mips.c */
OUTPUT_ARCH( "riscv" )
+ENTRY(_start)
/*----------------------------------------------------------------------*/
/* Sections */
{
/* text: test code section */
- . = 0;
- .text :
- {
- crt.o(.text)
- *(.text)
- }
+ . = 0x80000000;
+ .text.init : { *(.text.init) }
+
+ . = ALIGN(0x1000);
+ .tohost : { *(.tohost) }
+
+ .text : { *(.text) }
/* data segment */
.data : { *(.data) }
.sdata : {
- _gp = . + 0x800;
+ __global_pointer$ = . + 0x800;
*(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2) *(.srodata*)
*(.sdata .sdata.* .gnu.linkonce.s.*)
}
.tdata :
{
_tls_data = .;
- crt.o(.tdata.begin)
+ *(.tdata.begin)
*(.tdata)
- crt.o(.tdata.end)
+ *(.tdata.end)
}
.tbss :
{
*(.tbss)
- crt.o(.tbss.end)
+ *(.tbss.end)
}
/* End of uninitalized data segement */