summaryrefslogtreecommitdiff
path: root/bsp/env
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/env')
-rw-r--r--bsp/env/coreplexip-e31-arty/link.lds2
-rw-r--r--bsp/env/freedom-e300-hifive1/link.lds2
-rw-r--r--bsp/env/start.S5
3 files changed, 6 insertions, 3 deletions
diff --git a/bsp/env/coreplexip-e31-arty/link.lds b/bsp/env/coreplexip-e31-arty/link.lds
index 739bc48..2570333 100644
--- a/bsp/env/coreplexip-e31-arty/link.lds
+++ b/bsp/env/coreplexip-e31-arty/link.lds
@@ -124,7 +124,7 @@ SECTIONS
.sdata :
{
- PROVIDE( _gp = . + 0x800 );
+ PROVIDE( __global_pointer$ = . + 0x800 );
*(.sdata .sdata.*)
*(.gnu.linkonce.s.*)
} >ram AT>flash :ram_init
diff --git a/bsp/env/freedom-e300-hifive1/link.lds b/bsp/env/freedom-e300-hifive1/link.lds
index bc4488d..13349b5 100644
--- a/bsp/env/freedom-e300-hifive1/link.lds
+++ b/bsp/env/freedom-e300-hifive1/link.lds
@@ -124,7 +124,7 @@ SECTIONS
.sdata :
{
- PROVIDE( _gp = . + 0x800 );
+ PROVIDE( __global_pointer$ = . + 0x800 );
*(.sdata .sdata.*)
*(.gnu.linkonce.s.*)
} >ram AT>flash :ram_init
diff --git a/bsp/env/start.S b/bsp/env/start.S
index 5e0e3f1..e86105b 100644
--- a/bsp/env/start.S
+++ b/bsp/env/start.S
@@ -7,7 +7,10 @@
.type _start,@function
_start:
- la gp, _gp
+.option push
+.option norelax
+ la gp, __global_pointer$
+.option pop
la sp, _sp
/* Load data section */