]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2007-06-18 Jakub Jelinek <jakub@redhat.com>
authorJakub Jelinek <jakub@redhat.com>
Thu, 12 Jul 2007 15:34:38 +0000 (15:34 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 12 Jul 2007 15:34:38 +0000 (15:34 +0000)
* elf/rtld.c (dl_main): Don't call init_tls more than once.

ChangeLog
elf/rtld.c

index 67481ed67ab9d7262479cc70492b3e67aa506478..6e635e6e95837f770950d0c08158e0b1a9fbf4bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-06-18  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf/rtld.c (dl_main): Don't call init_tls more than once.
+
 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
 
        * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
index 584d216f708a0b24cf333286b43a5cbf71375108..7bf84e2534c67c8451dacd79baa1cb965d8ae008 100644 (file)
@@ -1414,6 +1414,12 @@ ld.so does not support TLS, but program uses it!\n");
       /* Iterate over all entries in the list.  The order is important.  */
       struct audit_ifaces *last_audit = NULL;
       struct audit_list *al = audit_list->next;
+
+#ifdef USE_TLS
+      /* Since we start using the auditing DSOs right away we need to
+        initialize the data structures now.  */
+      tcbp = init_tls ();
+#endif
       do
        {
 #ifdef USE_TLS
@@ -1424,10 +1430,6 @@ ld.so does not support TLS, but program uses it!\n");
             always allocate the static block, we never defer it even if
             no DF_STATIC_TLS bit is set.  The reason is that we know
             glibc will use the static model.  */
-
-         /* Since we start using the auditing DSOs right away we need to
-            initialize the data structures now.  */
-         tcbp = init_tls ();
 #endif
          struct dlmopen_args dlmargs;
          dlmargs.fname = al->name;