This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] x86: Add -Wl,--no-as-needed to some TLS tests
- From: H.J.Lu <hjl at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 2 May 2017 23:02:20 -0000
- Subject: [binutils-gdb] x86: Add -Wl,--no-as-needed to some TLS tests
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3d8505928a06e00b05bb162c1ad0dd612c1c16af
commit 3d8505928a06e00b05bb162c1ad0dd612c1c16af
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue May 2 16:00:49 2017 -0700
x86: Add -Wl,--no-as-needed to some TLS tests
* testsuite/ld-i386/tls.exp: Add -Wl,--no-as-needed to
"TLS without PLT (1)" and "TLS without PLT (3)".
* testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to
to "TLS without PLT (3)".
Diff:
---
ld/ChangeLog | 7 +++++++
ld/testsuite/ld-i386/tls.exp | 4 ++--
ld/testsuite/ld-x86-64/tls.exp | 2 +-
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 4fc4e1d..ff52608 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,12 @@
2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
+ * testsuite/ld-i386/tls.exp: Add -Wl,--no-as-needed to
+ "TLS without PLT (1)" and "TLS without PLT (3)".
+ * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to
+ to "TLS without PLT (3)".
+
+2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
+
PR ld/21384
* testsuite/ld-elf/pr21384.d: New file.
* testsuite/ld-elf/pr21384.dl: Likewise.
diff --git a/ld/testsuite/ld-i386/tls.exp b/ld/testsuite/ld-i386/tls.exp
index 7a99e46..5fd42bc 100644
--- a/ld/testsuite/ld-i386/tls.exp
+++ b/ld/testsuite/ld-i386/tls.exp
@@ -141,7 +141,7 @@ run_ld_link_exec_tests [list \
] \
[list \
"TLS without PLT (1)" \
- "tmpdir/tls-main1.o \
+ "-Wl,--no-as-needed tmpdir/tls-main1.o \
tmpdir/libtls-1a.so tmpdir/libtls-1b.so -Wl,-R,tmpdir" \
"" \
{ dummy.s } \
@@ -159,7 +159,7 @@ run_ld_link_exec_tests [list \
] \
[list \
"TLS without PLT (3)" \
- "-Wl,-z,now tmpdir/tls-main1.o \
+ "-Wl,--no-as-needed -Wl,-z,now tmpdir/tls-main1.o \
tmpdir/libtls-1a.so tmpdir/libtls-1bn.so -Wl,-R,tmpdir" \
"" \
{ dummy.s } \
diff --git a/ld/testsuite/ld-x86-64/tls.exp b/ld/testsuite/ld-x86-64/tls.exp
index 5282146..4263d95 100644
--- a/ld/testsuite/ld-x86-64/tls.exp
+++ b/ld/testsuite/ld-x86-64/tls.exp
@@ -159,7 +159,7 @@ run_ld_link_exec_tests [list \
] \
[list \
"TLS without PLT (3)" \
- "-Wl,-z,now tmpdir/tls-main1.o \
+ "-Wl,--no-as-needed -Wl,-z,now tmpdir/tls-main1.o \
tmpdir/libtls-1a.so tmpdir/libtls-1bn.so -Wl,-R,tmpdir" \
"" \
{ dummy.s } \