X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Flibc.c;h=942f6b44843684631a6a906e8cfc06ebea09704e;hb=ea34b1b90ca5ba3b87725662f6a1ff03b7a88a1f;hp=5e8e9d95311f346013ce0c12c99f474fd98ea0ab;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/internal/libc.c b/src/internal/libc.c index 5e8e9d95..942f6b44 100644 --- a/src/internal/libc.c +++ b/src/internal/libc.c @@ -1,3 +1,22 @@ #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; +char *__progname=0, *__progname_full=0; + +weak_alias(__progname, program_invocation_short_name); +weak_alias(__progname_full, program_invocation_name);