From: Vladimir Mezentsev Date: Thu, 30 Mar 2023 03:13:14 +0000 (-0700) Subject: gprofng: Add version symbols to libgprofng.ver X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2f9bde5cde7ff34ed0a4c4682a211d402aa1086;p=binutils-gdb.git gprofng: Add version symbols to libgprofng.ver gprofng/ChangeLog 2023-03-29 Vladimir Mezentsev PR gprofng/30089 * libcollector/libgprofng.ver: Add version symbols. * libcollector/synctrace.c: Fix typo for pthread_mutex_lock. --- diff --git a/gprofng/libcollector/libgprofng.ver b/gprofng/libcollector/libgprofng.ver index dbb3212aa1e..2433f15cf6a 100644 --- a/gprofng/libcollector/libgprofng.ver +++ b/gprofng/libcollector/libgprofng.ver @@ -20,54 +20,71 @@ GLIBC_2.0 { global: + dlclose; + dlopen; + fclose; + fdopen; + fgetpos; + fopen; + fsetpos; + popen; + pthread_cond_timedwait; + pthread_cond_wait; pthread_create; - pthread_mutex_lock; - pthread_mutex_unlock; + pthread_join; pthread_sigmask; - popen; + sem_wait; + timer_create; }; GLIBC_2.1 { global: - pthread_create; + dlopen; + fclose; + fdopen; + fgetpos64; + fopen; + fsetpos64; popen; + pthread_create; + sem_wait; } GLIBC_2.0; GLIBC_2.2 { global: + fgetpos; + fgetpos64; + fsetpos; + fsetpos64; open64; posix_spawn; posix_spawnp; pread; - pwrite; - pwrite64; timer_create; - fgetpos; - fsetpos; - fgetpos64; - fsetpos64; } GLIBC_2.1; GLIBC_2.2.5 { global: - posix_spawn; - posix_spawnp; - pthread_mutex_lock; - pthread_mutex_unlock; - pthread_sigmask; - pthread_join; - sem_wait; - pthread_create; + dlclose; dlopen; - popen; - timer_create; - pthread_cond_wait; - pthread_cond_timedwait; - fopen; fclose; fdopen; fgetpos; + fgetpos64; + fopen; fsetpos; + fsetpos64; + popen; + posix_spawn; + posix_spawnp; + pthread_cond_timedwait; + pthread_cond_wait; + pthread_create; + pthread_join; + pthread_sigmask; + sem_wait; + timer_create; + timer_create; } GLIBC_2.2 ; GLIBC_2.3.2 { @@ -89,24 +106,26 @@ GLIBC_2.15 { GLIBC_2.17 { global: - posix_spawn; - posix_spawnp; - pthread_mutex_lock; - pthread_mutex_unlock; - pthread_sigmask; - pthread_join; - sem_wait; - pthread_create; + dlclose; dlopen; - popen; - timer_create; - pthread_cond_wait; - pthread_cond_timedwait; - fopen; fclose; fdopen; fgetpos; + fgetpos64; + fopen; fsetpos; + fsetpos64; + popen; + posix_spawn; + posix_spawnp; + pthread_cond_timedwait; + pthread_cond_wait; + pthread_create; + pthread_join; + pthread_sigmask; + sem_wait; + timer_create; + timer_create; } GLIBC_2.15; GLIBC_2.32 { @@ -116,10 +135,11 @@ GLIBC_2.32 { GLIBC_2.34 { global: - pthread_join; - sem_wait; - pthread_create; + dlclose; dlopen; + pthread_create; + pthread_join; + sem_wait; timer_create; } GLIBC_2.32; diff --git a/gprofng/libcollector/synctrace.c b/gprofng/libcollector/synctrace.c index 3d53d1fc882..a00691fd958 100644 --- a/gprofng/libcollector/synctrace.c +++ b/gprofng/libcollector/synctrace.c @@ -615,9 +615,9 @@ gprofng_pthread_mutex_lock (int (real_func) (pthread_mutex_t *), return gprofng_pthread_mutex_lock (real_f, mp); \ } -DCL_FUNC_VER (DCL_PTHREAD_MUTEX_LOCK, pthread_mutex_lock_2_17, timer_create@GLIBC_2.17) -DCL_FUNC_VER (DCL_PTHREAD_MUTEX_LOCK, pthread_mutex_lock_2_2_5, timer_create@GLIBC_2.2.5) -DCL_FUNC_VER (DCL_PTHREAD_MUTEX_LOCK, pthread_mutex_lock_2_0, timer_create@GLIBC_2.0) +DCL_FUNC_VER (DCL_PTHREAD_MUTEX_LOCK, pthread_mutex_lock_2_17, pthread_mutex_lock@GLIBC_2.17) +DCL_FUNC_VER (DCL_PTHREAD_MUTEX_LOCK, pthread_mutex_lock_2_2_5, pthread_mutex_lock@GLIBC_2.2.5) +DCL_FUNC_VER (DCL_PTHREAD_MUTEX_LOCK, pthread_mutex_lock_2_0, pthread_mutex_lock@GLIBC_2.0) DCL_PTHREAD_MUTEX_LOCK (pthread_mutex_lock, CALL_REAL (pthread_mutex_lock)) /*------------------------------------------------------------- pthread_cond_wait */