X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Flibc.c;h=d22d274708b0d084b30cd72b713df740841e62b4;hb=a47ad3ebce8e20a5d72535996a0d0d5458241213;hp=5e8e9d95311f346013ce0c12c99f474fd98ea0ab;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/internal/libc.c b/src/internal/libc.c index 5e8e9d95..d22d2747 100644 --- a/src/internal/libc.c +++ b/src/internal/libc.c @@ -1,3 +1,18 @@ #include "libc.h" -struct libc libc; +#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 + +size_t __hwcap; +size_t __sysinfo;