bump env
[riscv-tests.git] / benchmarks / common / test.ld
index 438581cb6b04d9b754b09840d7b4e60dd61d60c1..4f8892ee25f7600018b6bfe178029b2492382f86 100644 (file)
    specifically one of the entires in bfd/cpu-mips.c */
 
 OUTPUT_ARCH( "riscv" )
-
-/* The ENTRY command specifies the entry point (ie. first instruction
-   to execute). The symbol _start should be defined in each test. */
-
-ENTRY( _start )
+ENTRY(_start)
 
 /*----------------------------------------------------------------------*/
 /* Sections                                                             */
@@ -26,29 +22,42 @@ SECTIONS
 {
 
   /* text: test code section */
-  . = 0x00002000;
-  .text : 
-  {
-    crt.o(.text)
-    *(.text)
-  }
+  . = 0x80000000;
+  .text.init : { *(.text.init) }
+
+  . = ALIGN(0x1000);
+  .tohost : { *(.tohost) }
 
-  /* data segmemt */
+  .text : { *(.text) }
+
+  /* data segment */
   .data : { *(.data) }
+
+  .sdata : {
+    __global_pointer$ = . + 0x800;
+    *(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2) *(.srodata*)
+    *(.sdata .sdata.* .gnu.linkonce.s.*)
+  }
+
+  /* bss segment */
+  .sbss : {
+    *(.sbss .sbss.* .gnu.linkonce.sb.*)
+    *(.scommon)
+  }
   .bss : { *(.bss) }
 
   /* thread-local data segment */
   .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 */