Riscv shared libraries should not export __global_pointer$.
authorJim Wilson <jimw@sifive.com>
Tue, 5 Dec 2017 01:37:55 +0000 (17:37 -0800)
committerJim Wilson <jimw@sifive.com>
Tue, 5 Dec 2017 01:37:55 +0000 (17:37 -0800)
commitda02107a39f3eff5e0b6d6321da4e88f9564350a
tree26f3f9bfb155a75204d13577818d9fcc3bd43ebe
parent4d7efb8ce25f6d2c74c8073fbca880211cedda34
Riscv shared libraries should not export __global_pointer$.

ld/
* emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Mark
__global_pointer$ as HIDDEN.
* testsuite/ld-riscv-elf/gp-hidden-64.rd: New.
* testsuite/ld-riscv-elf/gp-hidden-lib.rd: New.
* testsuite/ld-riscv-elf/gp-hidden-lib.s: New.
* testsuite/ld-riscv-elf/gp-hidden-ver-64.rd: New.
* testsuite/ld-riscv-elf/gp-hidden-ver.rd: New.
* testsuite/ld-riscv-elf/gp-hidden-ver.s: New.
* testsuite/ld-riscv-elf/gp-hidder-ver.ver: New.
* testsuite/ld-riscv-elf/gp-hidden.rd: New.
* testsuite/ld-riscv-elf/gp-hidden.s: New.
* testsuite/ld-riscv-elf/gp-hidden.sd: New.
* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Change riscv to riscv*.
Run the new tests with run_ld_link_tests.
13 files changed:
ld/ChangeLog
ld/emulparams/elf32lriscv-defs.sh
ld/testsuite/ld-riscv-elf/gp-hidden-64.rd [new file with mode: 0644]
ld/testsuite/ld-riscv-elf/gp-hidden-lib.rd [new file with mode: 0644]
ld/testsuite/ld-riscv-elf/gp-hidden-lib.s [new file with mode: 0644]
ld/testsuite/ld-riscv-elf/gp-hidden-ver-64.rd [new file with mode: 0644]
ld/testsuite/ld-riscv-elf/gp-hidden-ver.rd [new file with mode: 0644]
ld/testsuite/ld-riscv-elf/gp-hidden-ver.s [new file with mode: 0644]
ld/testsuite/ld-riscv-elf/gp-hidden-ver.ver [new file with mode: 0644]
ld/testsuite/ld-riscv-elf/gp-hidden.rd [new file with mode: 0644]
ld/testsuite/ld-riscv-elf/gp-hidden.s [new file with mode: 0644]
ld/testsuite/ld-riscv-elf/gp-hidden.sd [new file with mode: 0644]
ld/testsuite/ld-riscv-elf/ld-riscv-elf.exp