Run benchmarks in user mode
[riscv-tests.git] / benchmarks / common / test.ld
index 952bf539688c5a3da905e0cec0d6cdc8a4f0e9d7..dda2a7f528ccd6e8b8ce964c03fefbf9995e4435 100644 (file)
@@ -33,11 +33,16 @@ SECTIONS
     *(.text)
   }
 
-  /* data: Initialized data segment */
-  .data : 
-  {
-    *(.data)
+  /* data segmemt */
+  .data : { *(.data) }
+  .bss : { *(.bss) }
+
+  /* thread-local data segment */
+  .tbss : { 
+    crt.o(.tbss) /* Make sure tls_start is the first TLS symbol */
+    *(.tbss)
   }
+  .tdata : { *(.tdata) }
 
   /* End of uninitalized data segement */
   _end = .;