diff options
author | Xi Ruoyao <xry111@xry111.site> | 2025-08-29 11:39:36 +0800 |
---|---|---|
committer | caiyinyu <caiyinyu@loongson.cn> | 2025-09-01 09:07:35 +0800 |
commit | 0c6cb5285bc90b35dfdb476f47fe9bad721abf8b (patch) | |
tree | 8663df2f8e5e4eaa5cc4c6490eaf38960c3b4001 | |
parent | 4a32b39bb1e4f42ec675aba9dbd39288eb9323b0 (diff) | |
download | glibc-0c6cb5285bc90b35dfdb476f47fe9bad721abf8b.zip glibc-0c6cb5285bc90b35dfdb476f47fe9bad721abf8b.tar.gz glibc-0c6cb5285bc90b35dfdb476f47fe9bad721abf8b.tar.bz2 |
nptl: Provide __pthread_rwlock_unlock compat symbol for versions before 2.43
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>
-rw-r--r-- | nptl/Versions | 2 | ||||
-rw-r--r-- | nptl/pthread_rwlock_unlock.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/nptl/Versions b/nptl/Versions index ef55376..b813b67 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -381,6 +381,8 @@ libc { GLIBC_2.42 { pthread_gettid_np; } + GLIBC_2.43 { + } GLIBC_PRIVATE { __libc_alloca_cutoff; __lll_lock_wake_private; diff --git a/nptl/pthread_rwlock_unlock.c b/nptl/pthread_rwlock_unlock.c index 988e5a9..6abc227 100644 --- a/nptl/pthread_rwlock_unlock.c +++ b/nptl/pthread_rwlock_unlock.c @@ -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 |