X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Flibc.c;h=cb05181084a57ab5cc8772b31edb75ffd0279d1c;hb=fa4a8abd06a401822cc8ba4e352a219544c0118d;hp=c1e21ca021a45ebe7f2736a4cba13d75e0c1613d;hpb=78e79d9d502ab8cdbccf94a7f307c78b8847ad0e;p=musl diff --git a/src/internal/libc.c b/src/internal/libc.c index c1e21ca0..cb051810 100644 --- a/src/internal/libc.c +++ b/src/internal/libc.c @@ -1,15 +1,9 @@ #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 +size_t __hwcap; +char *__progname=0, *__progname_full=0; + +weak_alias(__progname, program_invocation_short_name); +weak_alias(__progname_full, program_invocation_name);