summaryrefslogtreecommitdiff
path: root/src/internal/libc.c
blob: c1e21ca021a45ebe7f2736a4cba13d75e0c1613d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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