[PATCH 2/2] nptl: Provide __pthread_rwlock_unlock compat symbol for versions before 2.43
Florian Weimer
fweimer@redhat.com
Fri Aug 29 06:52:23 GMT 2025
* Xi Ruoyao:
> diff --git a/nptl/pthread_rwlock_unlock.c b/nptl/pthread_rwlock_unlock.c
> index 988e5a94a5..6abc2273d9 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
Looks good. Thanks for taking time to write the comment.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Florian
More information about the Libc-alpha
mailing list