about summary refs log tree commit diff
path: root/sysdeps/powerpc/tst-tlsifunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/tst-tlsifunc.c')
-rw-r--r--sysdeps/powerpc/tst-tlsifunc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/powerpc/tst-tlsifunc.c b/sysdeps/powerpc/tst-tlsifunc.c
index 92313e68f4..6b256c6229 100644
--- a/sysdeps/powerpc/tst-tlsifunc.c
+++ b/sysdeps/powerpc/tst-tlsifunc.c
@@ -101,11 +101,14 @@ do_test (void)
 
   if (&bar == bar_ptr)
     printf ("PASS: bar address read from IFUNC resolver is correct.\n");
+#if !defined TST_TLSIFUNC_STATIC || !defined PIC \
+    || !defined PI_STATIC_AND_HIDDEN
   else
     {
       printf ("FAIL: bar address read from IFUNC resolver is incorrect.\n");
       ret = 1;
     }
+#endif
 
   if (tcb_test ())
     printf ("PASS: tcb_test IFUNC resolver called once.\n");