diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-05 17:15:57 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-05 17:19:45 +0200 |
commit | 1ae60ae74ff43cf7a28bace42d91cb6281bd50fc (patch) | |
tree | fd54e1e6d4119363c2e6fc263524c3c2b5e49791 /nptl/sem_init.c | |
parent | 61878689c228cdf324d609b98db3314d8a81f24d (diff) | |
download | glibc-1ae60ae74ff43cf7a28bace42d91cb6281bd50fc.tar.gz glibc-1ae60ae74ff43cf7a28bace42d91cb6281bd50fc.tar.xz glibc-1ae60ae74ff43cf7a28bace42d91cb6281bd50fc.zip |
nptl: Move sem_init into libc
The symbol was moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/sem_init.c')
-rw-r--r-- | nptl/sem_init.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nptl/sem_init.c b/nptl/sem_init.c index ea2ff7b85c..39fe76b92b 100644 --- a/nptl/sem_init.c +++ b/nptl/sem_init.c @@ -61,11 +61,13 @@ __new_sem_init (sem_t *sem, int pshared, unsigned int value) return 0; } -versioned_symbol (libpthread, __new_sem_init, sem_init, GLIBC_2_1); - +versioned_symbol (libc, __new_sem_init, sem_init, GLIBC_2_34); +#if OTHER_SHLIB_COMPAT(libpthread, GLIBC_2_1, GLIBC_2_34) +compat_symbol (libpthread, __new_sem_init, sem_init, GLIBC_2_1); +#endif -#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1) +#if OTHER_SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1) int attribute_compat_text_section __old_sem_init (sem_t *sem, int pshared, unsigned int value) |