X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Flibc.c;h=cb05181084a57ab5cc8772b31edb75ffd0279d1c;hb=6d8a515796270eb6cec8a278cb353a078a10f09a;hp=004c1a3359728c167784c9bc5b6ce992024eb141;hpb=e1b9c1b01be294cc2865acfe33544d5e5cc50eb4;p=musl diff --git a/src/internal/libc.c b/src/internal/libc.c index 004c1a33..cb051810 100644 --- a/src/internal/libc.c +++ b/src/internal/libc.c @@ -1,17 +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);