aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pr19719.d
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-04-19 20:11:55 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-04-19 20:11:55 -0700
commit87d455c042d2236b2afb1d6e13f337df36256bb0 (patch)
treee550a8205467d33a35f5455d25af8e31ae9c0a3b /ld/testsuite/ld-x86-64/pr19719.d
parentb73bf8516f99a6b04bd77337c5783b206922e79c (diff)
downloadgdb-87d455c042d2236b2afb1d6e13f337df36256bb0.zip
gdb-87d455c042d2236b2afb1d6e13f337df36256bb0.tar.gz
gdb-87d455c042d2236b2afb1d6e13f337df36256bb0.tar.bz2
Add another testcase for PR ld/19719
This test checks run-time relocation overflow with GOT relocation and 32-bit relocation against the same symbol. PR ld/19719 * testsuite/ld-x86-64/pr19719.d: New file. * testsuite/ld-x86-64/pr19719.s: Likewise. * testsuite/ld-x86-64/x86-64.exp: Run pr19719.
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr19719.d')
-rw-r--r--ld/testsuite/ld-x86-64/pr19719.d3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr19719.d b/ld/testsuite/ld-x86-64/pr19719.d
new file mode 100644
index 0000000..b2daf0e
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr19719.d
@@ -0,0 +1,3 @@
+#as: --64
+#ld: -pie -melf_x86_64
+#error: .*relocation R_X86_64_32 against undefined symbol `foo' can not be used when making a shared object; recompile with -fPIC