since gcc is failing to generate the necessary ".hidden" directive in the output asm, generate it explicitly with an __asm__ statement...
16 lines
218 B
C
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
|