about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/i386/htl
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-05-19 17:47:24 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-19 20:45:51 +0200
commitb44c1e12524bb5de0f93294a7c24c8e41c06bb75 (patch)
tree0ebc7e70a7027b383545f9fbb56dfebba0cbaeeb /sysdeps/mach/hurd/i386/htl
parent6af84886adb7105d452c0ffec21b5eed1ffa2d65 (diff)
downloadglibc-b44c1e12524bb5de0f93294a7c24c8e41c06bb75.tar.gz
glibc-b44c1e12524bb5de0f93294a7c24c8e41c06bb75.tar.xz
glibc-b44c1e12524bb5de0f93294a7c24c8e41c06bb75.zip
hurd: Fix using interposable hurd_thread_self
Create a private hidden __hurd_thread_self alias, and use that one.

Fixes 2f8ecb58a59eb82c43214d000842d99644a662d1
"hurd: Fix x86_64 _hurd_tls_fork" and
c7fcce38c83a2bb665ef5dc4981bf20c7e586123
"hurd: Make sure to not use tcb->self"

Reported-by: Joseph Myers <joseph@codesourcery.com>
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Diffstat (limited to 'sysdeps/mach/hurd/i386/htl')
-rw-r--r--sysdeps/mach/hurd/i386/htl/pt-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/i386/htl/pt-setup.c b/sysdeps/mach/hurd/i386/htl/pt-setup.c
index ba108b9611..27e5c98bf4 100644
--- a/sysdeps/mach/hurd/i386/htl/pt-setup.c
+++ b/sysdeps/mach/hurd/i386/htl/pt-setup.c
@@ -79,7 +79,7 @@ __pthread_setup (struct __pthread *thread,
 {
   error_t err;
 
-  if (thread->kernel_thread == hurd_thread_self ())
+  if (thread->kernel_thread == __hurd_thread_self ())
     /* Fix up the TCB for the main thread.  The C library has already
        installed a TCB, which we want to keep using.  This TCB must not
        be freed so don't register it in the thread structure.  On the