Files
semi-libc/src/internal/libc.c
T
Rich Felker 78e79d9d50 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...
2012-02-24 20:07:21 -05:00

16 lines
218 B
C

#include "libc.h"
#ifdef USE_LIBC_ACCESSOR
struct __libc *__libc_loc()
{
static struct __libc __libc;
return &__libc;
}
#else
struct __libc __libc;
#endif
#ifdef BROKEN_VISIBILITY
__asm__(".hidden __libc");
#endif