From: H.J. Lu Date: Sun, 21 May 2000 21:08:17 +0000 (+0000) Subject: 2000-05-21 H.J. Lu (hjl@gnu.org) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e80778cf3d9ba2660205117067d74bb61ba958ac;p=binutils-gdb.git 2000-05-21 H.J. Lu (hjl@gnu.org) * ld-elfvsb/main.c (main_visibility_check): Fix the protected visibility test. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 3e286d3d8c4..281fca4ea69 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 4a413159351..97bb2200e73 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. */