Add HW breakpoint test
[riscv-tests.git] / benchmarks / common / test.ld
index 816c948d691519d2f56e2fe22e553969cabcc949..dd32bb12fe168ca55536cb857c21799ccdb5658f 100644 (file)
@@ -21,15 +21,27 @@ SECTIONS
 {
 
   /* text: test code section */
-  . = 0;
-  .text : 
-  {
-    crt.o(.text)
-    *(.text)
-  }
+  . = 0x80000000;
+  .text.init : { crt.o(.text) }
+
+  .tohost ALIGN(0x1000) : { *(.tohost) }
+
+  .text : { *(.text) }
 
-  /* data segmemt */
+  /* data segment */
   .data : { *(.data) }
+
+  .sdata : {
+    _gp = . + 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 */