hurd: Fix using interposable hurd_thread_self
authorSergey Bugaev <bugaevc@gmail.com>
Fri, 19 May 2023 14:47:24 +0000 (17:47 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 19 May 2023 18:45:51 +0000 (20:45 +0200)
commitb44c1e12524bb5de0f93294a7c24c8e41c06bb75
tree0ebc7e70a7027b383545f9fbb56dfebba0cbaeeb
parent6af84886adb7105d452c0ffec21b5eed1ffa2d65
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>
hurd/Versions
hurd/thread-self.c
sysdeps/hurd/include/hurd.h
sysdeps/mach/hurd/i386/htl/pt-setup.c
sysdeps/mach/hurd/x86_64/htl/pt-setup.c
sysdeps/mach/hurd/x86_64/tls.h