Run PR ld/21481 tests only if IFUNC is supported
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 16 May 2017 15:52:01 +0000 (08:52 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 16 May 2017 15:52:01 +0000 (08:52 -0700)
PR ld/21481
* testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests only
if IFUNC is supported by run-time.

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

index a1df77a96f91b1c641ebc6bf1f84daf30a963798..2034a1a690e3f7af2cde8ebbc414560bd0bc7aed 100644 (file)
@@ -1,3 +1,9 @@
+2017-05-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/21481
+       * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests only
+       if IFUNC is supported by run-time.
+
 2017-05-16  Alan Modra  <amodra@gmail.com>
 
        * plugin.c: Rename occurrences of non_ir_ref.
index 05125df6b270392d02e8b43ba84750ec168a6580..d583f098455ed2e7d22969f86619f808485bdeb0 100644 (file)
@@ -1221,6 +1221,24 @@ if { [isnative] && [which $CC] != 0 } {
                "pr19784b" \
                "pass.out" \
            ] \
+           [list \
+               "Run pr21481a" \
+               "$NOPIE_LDFLAGS -Wl,-z,bndplt" \
+               "" \
+               { pr21481a.c pr21481b.S } \
+               "pr21481a" \
+               "pass.out" \
+               "$NOPIE_CFLAGS" \
+           ] \
+           [list \
+               "Run pr21481b" \
+               "$NOPIE_LDFLAGS -Wl,-z,bndplt,-z,now" \
+               "" \
+               { pr21481a.c pr21481b.S } \
+               "pr21481b" \
+               "pass.out" \
+               "$NOPIE_CFLAGS" \
+           ] \
        ]
     }
 
@@ -1317,24 +1335,6 @@ if { [isnative] && [which $CC] != 0 } {
                "pr20800" \
                "pass.out" \
            ] \
-           [list \
-               "Run pr21481a" \
-               "$NOPIE_LDFLAGS -Wl,-z,bndplt" \
-               "" \
-               { pr21481a.c pr21481b.S } \
-               "pr21481a" \
-               "pass.out" \
-               "$NOPIE_CFLAGS" \
-           ] \
-           [list \
-               "Run pr21481b" \
-               "$NOPIE_LDFLAGS -Wl,-z,bndplt,-z,now" \
-               "" \
-               { pr21481a.c pr21481b.S } \
-               "pr21481b" \
-               "pass.out" \
-               "$NOPIE_CFLAGS" \
-           ] \
        ]
     }