aboutsummaryrefslogtreecommitdiff
path: root/elf/rtld.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-08-01 23:31:23 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-08-05 18:26:42 +0200
commitfe06fb313bddf7e4530056897d4a706606e49377 (patch)
tree5137b4fddbaef3af328dc45b72e517b666feffbd /elf/rtld.c
parent39ca997ab378990d5ac1aadbaa52aaf1db6d526f (diff)
downloadglibc-fe06fb313bddf7e4530056897d4a706606e49377.zip
glibc-fe06fb313bddf7e4530056897d4a706606e49377.tar.gz
glibc-fe06fb313bddf7e4530056897d4a706606e49377.tar.bz2
elf: Clarify and invert second argument of _dl_allocate_tls_init
Also remove an outdated comment: _dl_allocate_tls_init is called as part of pthread_create. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index bfdf632..09b9c99 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2338,7 +2338,7 @@ dl_main (const ElfW(Phdr) *phdr,
into the main thread's TLS area, which we allocated above.
Note: thread-local variables must only be accessed after completing
the next step. */
- _dl_allocate_tls_init (tcbp, false);
+ _dl_allocate_tls_init (tcbp, true);
/* And finally install it for the main thread. */
if (! __rtld_tls_init_tp_called)