From a22cad65ccb9cfd81c057db83cc2c7c2cb5ae79d Mon Sep 17 00:00:00 2001 From: kan Date: Fri, 30 May 2003 00:21:52 +0000 Subject: Attempt to eliminate PLT relocations from rwlock aquire/release path, making them suitable for direct use by the dynamic loader. Register libpthread-specific locking API with rtld on startup. This still has some rough edges with signals which should be addresses later. Approved by: re (scottl) --- lib/libpthread/thread/thr_mutex.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/libpthread/thread/thr_mutex.c') diff --git a/lib/libpthread/thread/thr_mutex.c b/lib/libpthread/thread/thr_mutex.c index 4e3e79b..2df59ef 100644 --- a/lib/libpthread/thread/thr_mutex.c +++ b/lib/libpthread/thread/thr_mutex.c @@ -718,6 +718,8 @@ __pthread_mutex_lock(pthread_mutex_t *m) return (ret); } +__strong_reference(__pthread_mutex_lock, _thr_mutex_lock); + int _pthread_mutex_lock(pthread_mutex_t *m) { @@ -748,6 +750,8 @@ _pthread_mutex_unlock(pthread_mutex_t *m) return (mutex_unlock_common(m, /* add reference */ 0)); } +__strong_reference(_pthread_mutex_unlock, _thr_mutex_unlock); + int _mutex_cv_unlock(pthread_mutex_t *m) { -- cgit v1.1