1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Avoid unconditional __call_tls_dtors calls in static linking.

This commit is contained in:
Roland McGrath
2013-03-28 16:52:57 -07:00
parent 288f7d79fe
commit e57b0c6100
6 changed files with 27 additions and 5 deletions

View File

@ -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);