aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/common
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-03-17 15:37:29 -0700
committerAndrew Waterman <andrew@sifive.com>2017-03-29 19:47:12 -0700
commit610e0cb499a807287320fb13701cdee373a0a091 (patch)
treeda04a876f4f88ef57b92d1e3519d79c167635e4a /benchmarks/common
parent1b78e242657f80250292f39e1f41bad2b1ab9d6c (diff)
downloadriscv-tests-610e0cb499a807287320fb13701cdee373a0a091.zip
riscv-tests-610e0cb499a807287320fb13701cdee373a0a091.tar.gz
riscv-tests-610e0cb499a807287320fb13701cdee373a0a091.tar.bz2
Change the global pointer symbol to __global_pointer$
This changed a while ago in binutils.
Diffstat (limited to 'benchmarks/common')
-rw-r--r--benchmarks/common/crt.S2
-rw-r--r--benchmarks/common/test.ld2
2 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/common/crt.S b/benchmarks/common/crt.S
index 3d4d6cf..3e6cee4 100644
--- a/benchmarks/common/crt.S
+++ b/benchmarks/common/crt.S
@@ -111,7 +111,7 @@ _start:
csrw mtvec, t0
# initialize global pointer
- la gp, _gp
+ la gp, __global_pointer$
la tp, _end + 63
and tp, tp, -64
diff --git a/benchmarks/common/test.ld b/benchmarks/common/test.ld
index 8141dda..a08d71d 100644
--- a/benchmarks/common/test.ld
+++ b/benchmarks/common/test.ld
@@ -32,7 +32,7 @@ SECTIONS
.data : { *(.data) }
.sdata : {
- _gp = . + 0x800;
+ __global_pointer$ = . + 0x800;
*(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2) *(.srodata*)
*(.sdata .sdata.* .gnu.linkonce.s.*)
}