Don't use "_gp" on RISC-V, use "_global_pointer$" instead
authorPalmer Dabbelt <palmer@dabbelt.com>
Wed, 8 Feb 2017 19:26:07 +0000 (11:26 -0800)
committerPalmer Dabbelt <palmer@dabbelt.com>
Mon, 13 Feb 2017 17:53:54 +0000 (09:53 -0800)
commit10ddfe62f8979cfe380b07c4f827e72681cc612a
tree1e52ba9c04db0cf13212d0918b28ea5d56ac0e0d
parentd11135f55294d75099ad03f81bacbe8ae93a6b28
Don't use "_gp" on RISC-V, use "_global_pointer$" instead

"_gp" could conflict with ABI-complient code.  While it's probably OK
because MIPS uses this name, we figured it'd be good to clean this up
before a release with RISC-V in it.

ld/ChangeLog:

2017-02-13  Palmer Dabbelt  <palmer@dabbelt.com>

        * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
        _gp to __global_pointer$.

bfd/ChangeLog:

2017-02-13  Palmer Dabbelt  <palmer@dabbelt.com>

        * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
        __global_pointer$.
bfd/ChangeLog
bfd/elfnn-riscv.c
ld/ChangeLog
ld/emulparams/elf32lriscv-defs.sh