Fix FPU initialization code
[riscv-tests.git] / benchmarks / common / test.ld
index 7ee56b6e0976f6d135a28be313232e6fd18d79c8..8141dda44cdef51c9f80f2610a15d67bac6f5e06 100644 (file)
@@ -22,11 +22,11 @@ SECTIONS
 
   /* text: test code section */
   . = 0x80000000;
-  .text : 
-  {
-    crt.o(.text)
-    *(.text)
-  }
+  .text.init : { *(.text.init) }
+
+  .tohost ALIGN(0x1000) : { *(.tohost) }
+
+  .text : { *(.text) }
 
   /* data segment */
   .data : { *(.data) }
@@ -48,14 +48,14 @@ SECTIONS
   .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 */