diff options
author | Jim Wilson <jimw@sifive.com> | 2017-12-05 14:42:12 -0800 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2017-12-05 14:42:12 -0800 |
commit | 0527614a9b805d1f640f477f51f9780403487ef8 (patch) | |
tree | 29b58cc3bf00cae87e174790c32bc5fd2db6fbe8 /ld/testsuite/ld-riscv-elf/gp-test.sd | |
parent | 858c9d13240e695bc3b750368f5d4e524b12112e (diff) | |
download | gdb-0527614a9b805d1f640f477f51f9780403487ef8.zip gdb-0527614a9b805d1f640f477f51f9780403487ef8.tar.gz gdb-0527614a9b805d1f640f477f51f9780403487ef8.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-riscv-elf/gp-test.sd')
-rw-r--r-- | ld/testsuite/ld-riscv-elf/gp-test.sd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-riscv-elf/gp-test.sd b/ld/testsuite/ld-riscv-elf/gp-test.sd new file mode 100644 index 0000000..30c1482 --- /dev/null +++ b/ld/testsuite/ld-riscv-elf/gp-test.sd @@ -0,0 +1,5 @@ +Symbol table '.symtab' contains [0-9]+ entries: + * Num: * Value * Size * Type * Bind * Vis * Ndx * Name +#... + * [0-9a-f]+: * [0-9a-f]+ * 0 * NOTYPE * GLOBAL * DEFAULT .* __global_pointer\$ +#pass |