ifunc.exp: Always build static_nonifunc_prog
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 2 Aug 2018 12:42:53 +0000 (05:42 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 2 Aug 2018 12:42:53 +0000 (05:42 -0700)
Since static_nonifunc_prog isn't linked against libc.a, we can always
build it.

* testsuite/ld-ifunc/ifunc.exp: Always build static_nonifunc_prog.

ld/ChangeLog
ld/testsuite/ld-ifunc/ifunc.exp

index c5838d294bbe56a26a136ee8d33ccfe58930f815..e1e67d5ab526f32834b507e2b4f1be6262249941 100644 (file)
@@ -1,3 +1,7 @@
+2018-08-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-ifunc/ifunc.exp: Always build static_nonifunc_prog.
+
 2018-08-02  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR binutils/23460
index 86892b96b58942516935a09fc76d734547f01a9a..5fee56d3bf60a6e3cfcd4edeaaa91fc98d0aa5a2 100644 (file)
@@ -231,10 +231,10 @@ if ![string match "" $STATIC_LDFLAGS] {
        fail "Could not link a static executable"
        set fails [expr $fails + 1]
     }
-    if ![ld_link $ld "tmpdir/static_nonifunc_prog" "-static tmpdir/empty.o"] {
-       fail "Could not link a non-ifunc using static executable"
-       set fails [expr $fails + 1]
-    }
+}
+if ![ld_link $ld "tmpdir/static_nonifunc_prog" "-static tmpdir/empty.o"] {
+    fail "Could not link a non-ifunc using static executable"
+    set fails [expr $fails + 1]
 }
 if ![ld_link $CC "tmpdir/test-1" "-Wl,--no-as-needed,-rpath=./tmpdir tmpdir/test-1.o tmpdir/libshared_ifunc.so"] {
     fail "Could not link test-1"