aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-10-01 04:47:02 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-10-01 04:47:02 +0000
commit0629d0af5a963d9bf2eafe458dc01f40eb597615 (patch)
tree31a11ae060fd5b7b9da394466436aed098f6a750 /ld/testsuite/ld-x86-64
parente28df02b6c50caba3460bc43542b8db4bc0925ce (diff)
downloadgdb-0629d0af5a963d9bf2eafe458dc01f40eb597615.zip
gdb-0629d0af5a963d9bf2eafe458dc01f40eb597615.tar.gz
gdb-0629d0af5a963d9bf2eafe458dc01f40eb597615.tar.bz2
Add 2 tests for PR ld/11812.
2010-09-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/11812 * ld-i386/nogot2.d: New * ld-i386/nogot2.s: Likewise. * ld-x86-64/nogot2.d: Likewise. * ld-x86-64/nogot2.s: Likewise. * ld-i386/i386.exp: Run nogot2. * ld-x86-64/x86-64.exp: Likewise.
Diffstat (limited to 'ld/testsuite/ld-x86-64')
-rw-r--r--ld/testsuite/ld-x86-64/nogot2.d7
-rw-r--r--ld/testsuite/ld-x86-64/nogot2.s4
-rw-r--r--ld/testsuite/ld-x86-64/x86-64.exp1
3 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/nogot2.d b/ld/testsuite/ld-x86-64/nogot2.d
new file mode 100644
index 0000000..c6123c5
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/nogot2.d
@@ -0,0 +1,7 @@
+#ld: -pie -melf_x86_64
+#readelf: -S --wide
+#as: --64
+
+#...
+[ ]*\[.*\][ ]+.*\.got\.plt.*
+#pass
diff --git a/ld/testsuite/ld-x86-64/nogot2.s b/ld/testsuite/ld-x86-64/nogot2.s
new file mode 100644
index 0000000..530e909
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/nogot2.s
@@ -0,0 +1,4 @@
+ .text
+ .globl _start
+_start:
+ movq _GLOBAL_OFFSET_TABLE_(%rip), %rcx
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index 1d3d67e..12f5cad 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -133,6 +133,7 @@ run_dump_test "tlsle1"
run_dump_test "tlspie1"
run_dump_test "unique1"
run_dump_test "nogot1"
+run_dump_test "nogot2"
run_dump_test "discarded1"
if { ![istarget "x86_64-*-linux*"] } {