diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/stdlib.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index db1812d85a..e50985a5b8 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -102,8 +102,12 @@ extern int __cxa_atexit_internal (void (*func) (void *), void *arg, void *d) extern int __cxa_thread_atexit_impl (void (*func) (void *), void *arg, void *d); -extern void __call_tls_dtors (void); -libc_hidden_proto (__call_tls_dtors); +extern void __call_tls_dtors (void) +#ifndef SHARED + __attribute__ ((weak)) +#endif + ; +libc_hidden_proto (__call_tls_dtors) extern void __cxa_finalize (void *d); |