This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Add 2 tests for PR ld/11812
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Thu, 30 Sep 2010 21:48:04 -0700
- Subject: PATCH: Add 2 tests for PR ld/11812
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
I checked in 2 tests for PR ld/11812.
H.J.
----
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.
diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp
index 86ba9e4..6777c5f 100644
--- a/ld/testsuite/ld-i386/i386.exp
+++ b/ld/testsuite/ld-i386/i386.exp
@@ -190,6 +190,7 @@ run_dump_test "protected2"
run_dump_test "protected3"
run_dump_test "tlspie1"
run_dump_test "nogot1"
+run_dump_test "nogot2"
run_dump_test "discarded1"
if { !([istarget "i?86-*-linux*"]
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*"] } {
--- /dev/null 2010-09-09 09:16:30.485584932 -0700
+++ binutils/ld/testsuite/ld-i386/nogot2.d 2010-09-30 21:38:46.782902137 -0700
@@ -0,0 +1,7 @@
+#ld: -pie -melf_i386
+#readelf: -S --wide
+#as: --32
+
+#...
+[ ]*\[.*\][ ]+.*\.got\.plt.*
+#pass
--- /dev/null 2010-09-09 09:16:30.485584932 -0700
+++ binutils/ld/testsuite/ld-i386/nogot2.s 2010-09-30 21:39:56.429123730 -0700
@@ -0,0 +1,4 @@
+ .text
+ .globl _start
+_start:
+ movl _GLOBAL_OFFSET_TABLE_, %ecx
--- /dev/null 2010-09-09 09:16:30.485584932 -0700
+++ binutils/ld/testsuite/ld-x86-64/nogot2.d 2010-09-30 21:39:22.929872559 -0700
@@ -0,0 +1,7 @@
+#ld: -pie -melf_x86_64
+#readelf: -S --wide
+#as: --64
+
+#...
+[ ]*\[.*\][ ]+.*\.got\.plt.*
+#pass
--- /dev/null 2010-09-09 09:16:30.485584932 -0700
+++ binutils/ld/testsuite/ld-x86-64/nogot2.s 2010-09-30 21:36:15.450307478 -0700
@@ -0,0 +1,4 @@
+ .text
+ .globl _start
+_start:
+ movq _GLOBAL_OFFSET_TABLE_(%rip), %rcx