]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
nptl: Provide __pthread_rwlock_unlock compat symbol for versions before 2.43
authorXi Ruoyao <xry111@xry111.site>
Fri, 29 Aug 2025 03:39:36 +0000 (11:39 +0800)
committercaiyinyu <caiyinyu@loongson.cn>
Mon, 1 Sep 2025 01:07:35 +0000 (09:07 +0800)
The symbol was unintentionally leaked on ports introduced after
GLIBC_2.34, provide the compat symbol to avoid breaking ABI on them.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
nptl/Versions
nptl/pthread_rwlock_unlock.c

index ef55376dd9dd4f6a2979fc6efa3e395cc63b2459..b813b675b917429dbceedb3acc5dcde68ae69049 100644 (file)
@@ -381,6 +381,8 @@ libc {
   GLIBC_2.42 {
     pthread_gettid_np;
   }
+  GLIBC_2.43 {
+  }
   GLIBC_PRIVATE {
     __libc_alloca_cutoff;
     __lll_lock_wake_private;
index 988e5a94a5202cf72185126a473cc8fe344c488d..6abc2273d95f9b15072fb17e5a9fea984be3cb1e 100644 (file)
@@ -51,7 +51,11 @@ libc_hidden_ver (___pthread_rwlock_unlock, __pthread_rwlock_unlock)
 compat_symbol (libpthread, ___pthread_rwlock_unlock, pthread_rwlock_unlock,
               GLIBC_2_1);
 #endif
-#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34)
+
+/* The symbol was unintentionally leaked on ports introduced after 2.34
+   release.  Provide the compat symbol for versions before 2.43 to avoid
+   breaking ABI.  */
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_43)
 compat_symbol (libpthread, ___pthread_rwlock_unlock, __pthread_rwlock_unlock,
               GLIBC_2_2);
 #endif