Change the global pointer symbol to __global_pointer$
[riscv-tests.git] / debug / targets / spike / link.lds
index 52e4472e19b4d730de565354d02554dc8cc4301e..b86b2b732e111f6290139b99e7d4c84a71d7a747 100755 (executable)
@@ -15,7 +15,7 @@ SECTIONS
   .data : { *(.data) }
 
   .sdata : {
-    _gp = . + 0x800;
+    __global_pointer$ = . + 0x800;
     *(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2)
     *(.srodata*)
     *(.sdata .sdata.* .gnu.linkonce.s.*)