]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Remove code dependent on __rtld_lock_default_lock_recursive macro
authorFlorian Weimer <fweimer@redhat.com>
Thu, 19 Dec 2024 20:28:50 +0000 (21:28 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 19 Dec 2024 20:29:58 +0000 (21:29 +0100)
Neither NPTL nor Hurd define this macro anymore.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/dl-tls_init_tp.c
sysdeps/generic/ldsodefs.h

index f180d16b5010775c1e0b8ec95e5d8eb80dbadc63..4c3ca3dc4bdd78167c44b1fa8277ad0a41084f28 100644 (file)
 
 #include <ldsodefs.h>
 
-#if defined SHARED && defined _LIBC_REENTRANT \
-    && defined __rtld_lock_default_lock_recursive
-static void
-rtld_lock_default_lock_recursive (void *lock)
-{
-  __rtld_lock_default_lock_recursive (lock);
-}
-
-static void
-rtld_lock_default_unlock_recursive (void *lock)
-{
-  __rtld_lock_default_unlock_recursive (lock);
-}
-#endif
-
 void
 __tls_pre_init_tp (void)
 {
 #if !PTHREAD_IN_LIBC
   GL(dl_init_static_tls) = &_dl_nothread_init_static_tls;
 #endif
-
-#if defined SHARED && defined _LIBC_REENTRANT \
-    && defined __rtld_lock_default_lock_recursive
-  GL(dl_rtld_lock_recursive) = rtld_lock_default_lock_recursive;
-  GL(dl_rtld_unlock_recursive) = rtld_lock_default_unlock_recursive;
-#endif
 }
 
 void
index 91447a5e77c2466dcf95fbdd52819913404b1c79..384640b7344d2b00829748bf64590a5884a54cde 100644 (file)
@@ -400,12 +400,6 @@ struct rtld_global
   struct auditstate _dl_rtld_auditstate[DL_NNS];
 #endif
 
-#if !PTHREAD_IN_LIBC && defined SHARED \
-    && defined __rtld_lock_default_lock_recursive
-  EXTERN void (*_dl_rtld_lock_recursive) (void *);
-  EXTERN void (*_dl_rtld_unlock_recursive) (void *);
-#endif
-
   /* Get architecture specific definitions.  */
 #define PROCINFO_DECL
 #ifndef PROCINFO_CLASS