From e80778cf3d9ba2660205117067d74bb61ba958ac Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 21 May 2000 21:08:17 +0000 Subject: [PATCH] 2000-05-21 H.J. Lu (hjl@gnu.org) * ld-elfvsb/main.c (main_visibility_check): Fix the protected visibility test. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-elfvsb/main.c | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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. */ -- 2.30.2