about summary refs log tree commit diff
path: root/htl
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2024-03-23 20:32:59 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-03-23 23:00:30 +0100
commitdc1a77269c971652a8a5167ec366792eae052e65 (patch)
tree5da3b6767ba21b2405404f9c9228a7af5b67decb /htl
parenta4273efa219480a7f2c9c8fa7bc8bb71c48c3604 (diff)
downloadglibc-dc1a77269c971652a8a5167ec366792eae052e65.tar.gz
glibc-dc1a77269c971652a8a5167ec366792eae052e65.tar.xz
glibc-dc1a77269c971652a8a5167ec366792eae052e65.zip
htl: Implement some support for TLS_DTV_AT_TP
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-ID: <20240323173301.151066-19-bugaevc@gmail.com>
Diffstat (limited to 'htl')
-rw-r--r--htl/pt-create.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/htl/pt-create.c b/htl/pt-create.c
index fac61f1b22..8a735d99cb 100644
--- a/htl/pt-create.c
+++ b/htl/pt-create.c
@@ -177,7 +177,9 @@ __pthread_create_internal (struct __pthread **thread,
       err = ENOMEM;
       goto failed_thread_tls_alloc;
     }
+#if TLS_TCB_AT_TP
   pthread->tcb->tcb = pthread->tcb;
+#endif
 
   /* And initialize the rest of the machine context.  This may include
      additional machine- and system-specific initializations that