From: H.J. Lu Date: Tue, 2 May 2017 23:00:49 +0000 (-0700) Subject: x86: Add -Wl,--no-as-needed to some TLS tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d8505928a06e00b05bb162c1ad0dd612c1c16af;p=binutils-gdb.git 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 --git a/ld/ChangeLog b/ld/ChangeLog index 4fc4e1d06aa..ff526083a27 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2017-05-02 H.J. Lu + + * 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 PR ld/21384 diff --git a/ld/testsuite/ld-i386/tls.exp b/ld/testsuite/ld-i386/tls.exp index 7a99e4626ca..5fd42bc38ad 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 5282146c295..4263d95bd1b 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 } \