aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-riscv-elf/gp-test.s
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2017-12-05 14:42:12 -0800
committerJim Wilson <jimw@sifive.com>2017-12-05 14:42:12 -0800
commit0527614a9b805d1f640f477f51f9780403487ef8 (patch)
tree29b58cc3bf00cae87e174790c32bc5fd2db6fbe8 /ld/testsuite/ld-riscv-elf/gp-test.s
parent858c9d13240e695bc3b750368f5d4e524b12112e (diff)
downloadgdb-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.s')
-rw-r--r--ld/testsuite/ld-riscv-elf/gp-test.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-riscv-elf/gp-test.s b/ld/testsuite/ld-riscv-elf/gp-test.s
new file mode 100644
index 0000000..a92c75e
--- /dev/null
+++ b/ld/testsuite/ld-riscv-elf/gp-test.s
@@ -0,0 +1,6 @@
+ .data
+ .globl blah
+ .type blah, @object
+blah:
+ .dc.a 0
+ .size blah, . - blah