x86: Add -Wl,--no-as-needed to some TLS tests
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 2 May 2017 23:00:49 +0000 (16:00 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 2 May 2017 23:01:39 +0000 (16:01 -0700)
* 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)".

ld/ChangeLog
ld/testsuite/ld-i386/tls.exp
ld/testsuite/ld-x86-64/tls.exp

index 4fc4e1d06aa455cafb4017fb352dc57665a703e0..ff526083a27ab83ac6d4e0e2d46e39b093908ca2 100644 (file)
@@ -1,3 +1,10 @@
+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
index 7a99e4626cafc7caa36abc86795cf44158500408..5fd42bc38ad948cedbaa568abf986bfdeb8f0093 100644 (file)
@@ -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 } \
index 5282146c295bacd334e7b4660ce4edac537b5a56..4263d95bd1b779e4faca28759198a0abf7743862 100644 (file)
@@ -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 } \