aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-elfvsb/main.c8
2 files changed, 12 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 3e286d3..281fca4 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-21 H.J. Lu (hjl@gnu.org)
+
+ * ld-elfvsb/main.c (main_visibility_check): Fix the protected
+ visibility test.
+
2000-05-13 H.J. Lu (hjl@gnu.org)
* lib/ld-lib.exp (default_ld_link): Redirect the linker output
diff --git a/ld/testsuite/ld-elfvsb/main.c b/ld/testsuite/ld-elfvsb/main.c
index 4a41315..97bb220 100644
--- a/ld/testsuite/ld-elfvsb/main.c
+++ b/ld/testsuite/ld-elfvsb/main.c
@@ -29,13 +29,19 @@ visibility ()
{
return 1;
}
-#endif
static int
main_visibility_check ()
{
+ return visibility_funptr () != visibility;
+}
+#else
+static int
+main_visibility_check ()
+{
return visibility_funptr () == visibility;
}
+#endif
/* This function is called by the shared library. */