aboutsummaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorMegan Wachs <megan@sifive.com>2017-04-17 11:33:46 -0700
committerMegan Wachs <megan@sifive.com>2017-04-17 11:33:46 -0700
commitd76b30df333659baf81b8411c7144378b735062a (patch)
treea7b644b937d4704a5959fd9751e40616b43297bd /debug
parenta5f84eecc4f7ffc698d57724f49d6aa8ce996e5c (diff)
parent0d53d12133bd3f7dce0e3731a5bc7dc0c1facc9d (diff)
downloadriscv-tests-d76b30df333659baf81b8411c7144378b735062a.zip
riscv-tests-d76b30df333659baf81b8411c7144378b735062a.tar.gz
riscv-tests-d76b30df333659baf81b8411c7144378b735062a.tar.bz2
Merge remote-tracking branch 'origin/priv-1.10' into HEAD
Diffstat (limited to 'debug')
-rwxr-xr-xdebug/programs/entry.S5
-rwxr-xr-xdebug/targets/freedom-e300-sim/link.lds2
-rwxr-xr-xdebug/targets/freedom-e300/link.lds2
-rwxr-xr-xdebug/targets/freedom-u500-sim/link.lds2
-rwxr-xr-xdebug/targets/freedom-u500/link.lds2
-rwxr-xr-xdebug/targets/spike/link.lds2
6 files changed, 9 insertions, 6 deletions
diff --git a/debug/programs/entry.S b/debug/programs/entry.S
index a5e745d..e021860 100755
--- a/debug/programs/entry.S
+++ b/debug/programs/entry.S
@@ -35,7 +35,10 @@ handle_reset:
csrwi mie, 0
# initialize global pointer
- la gp, _gp
+.option push
+.option norelax
+ la gp, __global_pointer$
+.option pop
# initialize stack pointer
la sp, stack_top
diff --git a/debug/targets/freedom-e300-sim/link.lds b/debug/targets/freedom-e300-sim/link.lds
index 1dbb99c..1e0645a 100755
--- a/debug/targets/freedom-e300-sim/link.lds
+++ b/debug/targets/freedom-e300-sim/link.lds
@@ -13,7 +13,7 @@ SECTIONS
.data : { *(.data) }
.sdata : {
- _gp = . + 0x800;
+ __global_pointer$ = . + 0x800;
*(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2)
*(.srodata*)
*(.sdata .sdata.* .gnu.linkonce.s.*)
diff --git a/debug/targets/freedom-e300/link.lds b/debug/targets/freedom-e300/link.lds
index 1dbb99c..1e0645a 100755
--- a/debug/targets/freedom-e300/link.lds
+++ b/debug/targets/freedom-e300/link.lds
@@ -13,7 +13,7 @@ SECTIONS
.data : { *(.data) }
.sdata : {
- _gp = . + 0x800;
+ __global_pointer$ = . + 0x800;
*(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2)
*(.srodata*)
*(.sdata .sdata.* .gnu.linkonce.s.*)
diff --git a/debug/targets/freedom-u500-sim/link.lds b/debug/targets/freedom-u500-sim/link.lds
index 1dbb99c..1e0645a 100755
--- a/debug/targets/freedom-u500-sim/link.lds
+++ b/debug/targets/freedom-u500-sim/link.lds
@@ -13,7 +13,7 @@ SECTIONS
.data : { *(.data) }
.sdata : {
- _gp = . + 0x800;
+ __global_pointer$ = . + 0x800;
*(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2)
*(.srodata*)
*(.sdata .sdata.* .gnu.linkonce.s.*)
diff --git a/debug/targets/freedom-u500/link.lds b/debug/targets/freedom-u500/link.lds
index 1dbb99c..1e0645a 100755
--- a/debug/targets/freedom-u500/link.lds
+++ b/debug/targets/freedom-u500/link.lds
@@ -13,7 +13,7 @@ SECTIONS
.data : { *(.data) }
.sdata : {
- _gp = . + 0x800;
+ __global_pointer$ = . + 0x800;
*(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2)
*(.srodata*)
*(.sdata .sdata.* .gnu.linkonce.s.*)
diff --git a/debug/targets/spike/link.lds b/debug/targets/spike/link.lds
index 52e4472..b86b2b7 100755
--- a/debug/targets/spike/link.lds
+++ b/debug/targets/spike/link.lds
@@ -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.*)