From 78e79d9d502ab8cdbccf94a7f307c78b8847ad0e Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 24 Feb 2012 20:07:21 -0500 Subject: new attempt at working around the gcc 3 visibility bug since gcc is failing to generate the necessary ".hidden" directive in the output asm, generate it explicitly with an __asm__ statement... --- src/internal/libc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/internal/libc.c') diff --git a/src/internal/libc.c b/src/internal/libc.c index 5f12e295..c1e21ca0 100644 --- a/src/internal/libc.c +++ b/src/internal/libc.c @@ -9,3 +9,7 @@ struct __libc *__libc_loc() #else struct __libc __libc; #endif + +#ifdef BROKEN_VISIBILITY +__asm__(".hidden __libc"); +#endif -- cgit v1.2.1