Index: gcc/gcc/testsuite/gcc.dg/attr-weakref-1.c |
diff --git a/gcc/gcc/testsuite/gcc.dg/attr-weakref-1.c b/gcc/gcc/testsuite/gcc.dg/attr-weakref-1.c |
index 19a511b8252c39c1eff2d59bd2205e91ac8ff5cc..898bc4169a038f8097f323c8093a259e2256028d 100644 |
--- a/gcc/gcc/testsuite/gcc.dg/attr-weakref-1.c |
+++ b/gcc/gcc/testsuite/gcc.dg/attr-weakref-1.c |
@@ -5,6 +5,10 @@ |
// is not available on hppa*-*-hpux*. The test is skipped rather than |
// xfailed to suppress the warning that would otherwise arise. |
// { dg-skip-if "" { "*-*-darwin*" "hppa*-*-hpux*" } "*" { "" } } |
+// For kernel modules and static RTPs, the loader treats undefined weak |
+// symbols in the same way as undefined strong symbols. The test |
+// therefore fails to load, so skip it. |
+// { dg-skip-if "" { "*-*-vxworks*" && nonpic } "*" { "-non-static" } } |
// { dg-options "-O2" } |
// { dg-additional-sources "attr-weakref-1a.c" } |