diff options
author | Jim Wilson <jimw@sifive.com> | 2017-12-04 17:37:55 -0800 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2017-12-04 17:37:55 -0800 |
commit | da02107a39f3eff5e0b6d6321da4e88f9564350a (patch) | |
tree | 26f3f9bfb155a75204d13577818d9fcc3bd43ebe /ld/emulparams | |
parent | 4d7efb8ce25f6d2c74c8073fbca880211cedda34 (diff) | |
download | gdb-da02107a39f3eff5e0b6d6321da4e88f9564350a.zip gdb-da02107a39f3eff5e0b6d6321da4e88f9564350a.tar.gz gdb-da02107a39f3eff5e0b6d6321da4e88f9564350a.tar.bz2 |
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.
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/elf32lriscv-defs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emulparams/elf32lriscv-defs.sh b/ld/emulparams/elf32lriscv-defs.sh index ab80333..5b41d5c 100644 --- a/ld/emulparams/elf32lriscv-defs.sh +++ b/ld/emulparams/elf32lriscv-defs.sh @@ -23,7 +23,7 @@ TEXT_START_ADDR=0x10000 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" -SDATA_START_SYMBOLS="__global_pointer$ = . + 0x800; +SDATA_START_SYMBOLS="HIDDEN (__global_pointer$ = . + 0x800); *(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2) *(.srodata .srodata.*)" INITIAL_READONLY_SECTIONS=".interp : { *(.interp) } ${CREATE_PIE-${INITIAL_READONLY_SECTIONS}}" |