]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/uclibc/lib/contrib/uclibc/libc/misc/internals/__uClibc_main.c
update
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / misc / internals / __uClibc_main.c
index 1570ed3415ce3a59e64751af95db4e383992e7fb..5b9526c8ee7b4ab9f0594cc378fe9c2b1f8532f3 100644 (file)
@@ -127,7 +127,14 @@ static __always_inline int not_null_ptr(const void *p)
  */
 extern int *weak_const_function __errno_location(void);
 extern int *weak_const_function __h_errno_location(void);
+/* aw11: hidden and weak in a statically linked library meaningless
+ *       and gold in x86_64 complains about
+ */
+#ifdef SHARED
 extern void weak_function _stdio_init(void) attribute_hidden;
+#else
+extern void weak_function _stdio_init(void);
+#endif
 #ifdef __UCLIBC_HAS_LOCALE__
 extern void weak_function _locale_init(void) attribute_hidden;
 #endif
@@ -382,15 +389,12 @@ void __uClibc_main(int (*main)(int, char **, char **), int argc,
 #endif
        aux_dat += 2;
     }
-#ifdef NOT_FOR_L4
-    // l4: should come out of libdl
 #ifndef SHARED
     /* Get the program headers (_dl_phdr) from the aux vector
        It will be used into __libc_setup_tls. */
 
     _dl_aux_init (auxvt);
 #endif
-#endif
 #endif
 
     /* We need to initialize uClibc.  If we are dynamically linked this