aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-05-21 21:08:17 +0000
committerH.J. Lu <hjl.tools@gmail.com>2000-05-21 21:08:17 +0000
commite80778cf3d9ba2660205117067d74bb61ba958ac (patch)
tree0366d4f6a0987535d89673e3fa768435d97150af /ld/testsuite
parent0aa5d42641ee478b4c96ab57ce77c798999b4833 (diff)
downloadgdb-e80778cf3d9ba2660205117067d74bb61ba958ac.zip
gdb-e80778cf3d9ba2660205117067d74bb61ba958ac.tar.gz
gdb-e80778cf3d9ba2660205117067d74bb61ba958ac.tar.bz2
2000-05-21 H.J. Lu (hjl@gnu.org)
* ld-elfvsb/main.c (main_visibility_check): Fix the protected visibility test.
Diffstat (limited to 'ld/testsuite')
-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. */