about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/Versions
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-03-19 18:09:54 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-03 01:02:44 +0200
commitaf2942cc622809650b3158fe61d73a0de952a10a (patch)
treeb2439eae3693f279ee90932e963d4247ddd6962a /sysdeps/mach/hurd/Versions
parent589bcfdeefeba493fd0f90fbdcbd285ec1ed313d (diff)
downloadglibc-af2942cc622809650b3158fe61d73a0de952a10a.tar.gz
glibc-af2942cc622809650b3158fe61d73a0de952a10a.tar.xz
glibc-af2942cc622809650b3158fe61d73a0de952a10a.zip
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>
Diffstat (limited to 'sysdeps/mach/hurd/Versions')
-rw-r--r--sysdeps/mach/hurd/Versions4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/Versions b/sysdeps/mach/hurd/Versions
index bf2e870a2a..20ac0067c7 100644
--- a/sysdeps/mach/hurd/Versions
+++ b/sysdeps/mach/hurd/Versions
@@ -20,7 +20,7 @@ libc {
     __open_nocancel;
     __read_nocancel; __pread64_nocancel;
     __write_nocancel;
-    __libc_lock_self0; __getcwd;
+    __getcwd;
     __stat64;
 
     _dl_init_first;
@@ -61,7 +61,7 @@ ld {
     __open_nocancel;
     __read_nocancel; __pread64_nocancel;
     __write_nocancel;
-    __libc_lock_self0; __getcwd;
+    __getcwd;
     __stat64; __fstat64;
   }
 }