refactor headers, especially alltypes.h, and improve C++ ABI compat
[musl] / src / internal / libc.c
index 954efed..942f6b4 100644 (file)
@@ -1,6 +1,6 @@
 #include "libc.h"
 
-#ifdef __PIC__
+#ifdef USE_LIBC_ACCESSOR
 struct __libc *__libc_loc()
 {
        static struct __libc __libc;
@@ -9,3 +9,14 @@ struct __libc *__libc_loc()
 #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);