Really fix riscv shared library __global_pointer$ problem.
authorJim Wilson <jimw@sifive.com>
Tue, 5 Dec 2017 22:42:12 +0000 (14:42 -0800)
committerJim Wilson <jimw@sifive.com>
Tue, 5 Dec 2017 22:42:12 +0000 (14:42 -0800)
commit0527614a9b805d1f640f477f51f9780403487ef8
tree29b58cc3bf00cae87e174790c32bc5fd2db6fbe8
parent858c9d13240e695bc3b750368f5d4e524b12112e
Really fix riscv shared library __global_pointer$ problem.

ld/
* emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Remove HIDDEN.
Don't define __global_pointer$ when CREATE_SHLIB.
* testsuite/ld-riscv-elf/gp-hidden-64.rd,
* testsuite/ld-riscv-elf/gp-hidden-lib.rd,
* testsuite/ld-riscv-elf/gp-hidden-lib.s,
* testsuite/ld-riscv-elf/gp-hidden-ver-64.rd,
* testsuite/ld-riscv-elf/gp-hidden-ver.rd,
* testsuite/ld-riscv-elf/gp-hidden-ver.s,
* testsuite/ld-riscv-elf/gp-hidden-ver.ver,
* testsuite/ld-riscv-elf/gp-hidden.rd,
* testsuite/ld-riscv-elf/gp-hidden.s,
* testsuite/ld-riscv-elf/gp-hidden.sd: Delete.
* testsuite/ld-riscv-elf/gp-test-lib.sd,
* testsuite/ld-riscv-elf/gp-test.s,
* testsuite/ld-riscv-elf/gp-test.sd: New.
* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Rewrite gp tests.
16 files changed:
ld/ChangeLog
ld/emulparams/elf32lriscv-defs.sh
ld/testsuite/ld-riscv-elf/gp-hidden-64.rd [deleted file]
ld/testsuite/ld-riscv-elf/gp-hidden-lib.rd [deleted file]
ld/testsuite/ld-riscv-elf/gp-hidden-lib.s [deleted file]
ld/testsuite/ld-riscv-elf/gp-hidden-ver-64.rd [deleted file]
ld/testsuite/ld-riscv-elf/gp-hidden-ver.rd [deleted file]
ld/testsuite/ld-riscv-elf/gp-hidden-ver.s [deleted file]
ld/testsuite/ld-riscv-elf/gp-hidden-ver.ver [deleted file]
ld/testsuite/ld-riscv-elf/gp-hidden.rd [deleted file]
ld/testsuite/ld-riscv-elf/gp-hidden.s [deleted file]
ld/testsuite/ld-riscv-elf/gp-hidden.sd [deleted file]
ld/testsuite/ld-riscv-elf/gp-test-lib.sd [new file with mode: 0644]
ld/testsuite/ld-riscv-elf/gp-test.s [new file with mode: 0644]
ld/testsuite/ld-riscv-elf/gp-test.sd [new file with mode: 0644]
ld/testsuite/ld-riscv-elf/ld-riscv-elf.exp