Skip to content

Commit

Permalink
* elf/rtld.c (dl_main): Don't call init_tls more than once.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Jelinek committed Jul 7, 2007
1 parent 0906c26 commit 5daa061
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
10 changes: 5 additions & 5 deletions elf/rtld.c
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,11 @@ of this helper program; chances are you did not intend to run this program.\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;

/* Since we start using the auditing DSOs right away we need to
initialize the data structures now. */
tcbp = init_tls ();

do
{
int tls_idx = GL(dl_tls_max_dtv_idx);
Expand All @@ -1409,11 +1414,6 @@ of this helper program; chances are you did not intend to run this program.\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 ();

struct dlmopen_args dlmargs;
dlmargs.fname = al->name;
dlmargs.map = NULL;
Expand Down

0 comments on commit 5daa061

Please sign in to comment.