X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Flibc.c;h=2e10942df1b7fc3fa5745451fcf5732a45eadd89;hb=831e9d9efa61566a25c1dcdbd28f55daeea4dd32;hp=d22d274708b0d084b30cd72b713df740841e62b4;hpb=12e9b4faf68a1a02ebf5ad69c03ac10f170f14cb;p=musl diff --git a/src/internal/libc.c b/src/internal/libc.c index d22d2747..2e10942d 100644 --- a/src/internal/libc.c +++ b/src/internal/libc.c @@ -1,18 +1,10 @@ #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; size_t __sysinfo; +char *__progname=0, *__progname_full=0; + +weak_alias(__progname, program_invocation_short_name); +weak_alias(__progname_full, program_invocation_name);