1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +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

@@ -34,7 +34,10 @@ __run_exit_handlers (int status, struct exit_function_list **listp,
bool run_list_atexit)
{
/* First, call the TLS destructors. */
__call_tls_dtors ();
#ifndef SHARED
if (&__call_tls_dtors != NULL)
#endif
__call_tls_dtors ();
/* We do it this way to handle recursive calls to exit () made by
the functions registered with `atexit' and `on_exit'. We call