Clean up bmarks build
[riscv-tests.git] / benchmarks / common / test.ld
index 082891c3c195138acf9b979ba1cbe4efe8991387..8141dda44cdef51c9f80f2610a15d67bac6f5e06 100644 (file)
@@ -21,12 +21,12 @@ SECTIONS
 {
 
   /* text: test code section */
-  . = 0;
-  .text : 
-  {
-    crt.o(.text)
-    *(.text)
-  }
+  . = 0x80000000;
+  .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 */