diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2017-06-09 23:20:22 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2017-06-09 23:23:42 -0700 |
commit | 323592969d8d60a5c262aba34c2d75980208dab8 (patch) | |
tree | ff3a10b9a6980b7db1710b1196e908174467d58b | |
parent | 48548288b65e542d456071e3044c6a86add2eddf (diff) |
Use the correct global pointer symbol
-rw-r--r-- | bsp/env/coreplexip-e31-arty/link.lds | 2 | ||||
-rw-r--r-- | bsp/env/freedom-e300-hifive1/link.lds | 2 | ||||
-rw-r--r-- | bsp/env/start.S | 5 |
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 */ |