2000-05-21 H.J. Lu (hjl@gnu.org)
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 21 May 2000 21:08:17 +0000 (21:08 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 21 May 2000 21:08:17 +0000 (21:08 +0000)
* ld-elfvsb/main.c (main_visibility_check): Fix the protected
visibility test.

ld/testsuite/ChangeLog
ld/testsuite/ld-elfvsb/main.c

index 3e286d3d8c4fba442fd61e44313645ab15e6c470..281fca4ea6993fd2d3407405d62daa8249575a98 100644 (file)
@@ -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
index 4a4131593514904befe95bdb7aa1945052638100..97bb2200e7339e2593baed7e13c13a44686fdc15 100644 (file)
@@ -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.  */