]> git.ipfire.org Git - thirdparty/glibc.git/commit
mach, hurd: Drop __libc_lock_self0
authorSergey Bugaev <bugaevc@gmail.com>
Sun, 19 Mar 2023 15:09:54 +0000 (18:09 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 2 Apr 2023 23:02:44 +0000 (01:02 +0200)
commitaf2942cc622809650b3158fe61d73a0de952a10a
treeb2439eae3693f279ee90932e963d4247ddd6962a
parent589bcfdeefeba493fd0f90fbdcbd285ec1ed313d
mach, hurd: Drop __libc_lock_self0

This was used for the value of libc-lock's owner when TLS is not yet set
up, so THREAD_SELF can not be used. Since the value need not be anything
specific -- it just has to be non-NULL -- we can just use a plain
constant, such as (void *) 1, for this. This avoids accessing the symbol
through GOT, and exporting it from libc.so in the first place.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230319151017.531737-12-bugaevc@gmail.com>
sysdeps/mach/hurd/Versions
sysdeps/mach/hurd/cthreads.c
sysdeps/mach/libc-lock.h