diff options
author | Timo Teras <timo.teras@iki.fi> | 2010-04-16 15:34:26 +0300 |
---|---|---|
committer | Austin Foxley <austinf@cetoncorp.com> | 2010-04-16 10:11:16 -0700 |
commit | e80e2f61261741516902b44b13202d3f7673977e (patch) | |
tree | 7ac3b74cb7c564026e9d9b40d32041023fb4ef52 /libpthread/nptl | |
parent | 268cd8184f8daa106e4b20a8ee2c66410e6f9cbb (diff) |
Revert "nptl: mark symbols with libc forwarder hidden"
This reverts most of commit 1610762362e651f86ca284ac59a1d7ec88034e4e.
Marking the symbols hidden is wrong, because libc accesses
the pthreads internal symbols for internal locking.
Signed-off-by: Timo Teras <timo.teras@iki.fi>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/nptl')
70 files changed, 1 insertions, 71 deletions
diff --git a/libpthread/nptl/cleanup_defer_compat.c b/libpthread/nptl/cleanup_defer_compat.c index cc6889332..8fd9b5415 100644 --- a/libpthread/nptl/cleanup_defer_compat.c +++ b/libpthread/nptl/cleanup_defer_compat.c @@ -21,7 +21,6 @@ void -attribute_hidden _pthread_cleanup_push_defer ( struct _pthread_cleanup_buffer *buffer, void (*routine) (void *), @@ -61,7 +60,6 @@ strong_alias (_pthread_cleanup_push_defer, __pthread_cleanup_push_defer) void -attribute_hidden _pthread_cleanup_pop_restore ( struct _pthread_cleanup_buffer *buffer, int execute) diff --git a/libpthread/nptl/pt-cleanup.c b/libpthread/nptl/pt-cleanup.c index 619eb8b61..f72ea26e9 100644 --- a/libpthread/nptl/pt-cleanup.c +++ b/libpthread/nptl/pt-cleanup.c @@ -23,7 +23,6 @@ #include <jmpbuf-unwind.h> void -attribute_hidden __pthread_cleanup_upto (__jmp_buf target, char *targetframe) { struct pthread *self = THREAD_SELF; diff --git a/libpthread/nptl/pthread_attr_destroy.c b/libpthread/nptl/pthread_attr_destroy.c index 16b71645c..b8e6a374b 100644 --- a/libpthread/nptl/pthread_attr_destroy.c +++ b/libpthread/nptl/pthread_attr_destroy.c @@ -24,7 +24,6 @@ #include "pthreadP.h" int -attribute_hidden __pthread_attr_destroy ( pthread_attr_t *attr) { diff --git a/libpthread/nptl/pthread_attr_getdetachstate.c b/libpthread/nptl/pthread_attr_getdetachstate.c index 14b91df13..5f549ba2b 100644 --- a/libpthread/nptl/pthread_attr_getdetachstate.c +++ b/libpthread/nptl/pthread_attr_getdetachstate.c @@ -22,7 +22,6 @@ int -attribute_hidden __pthread_attr_getdetachstate ( const pthread_attr_t *attr, int *detachstate) diff --git a/libpthread/nptl/pthread_attr_getinheritsched.c b/libpthread/nptl/pthread_attr_getinheritsched.c index 8ab8657f6..3ff304094 100644 --- a/libpthread/nptl/pthread_attr_getinheritsched.c +++ b/libpthread/nptl/pthread_attr_getinheritsched.c @@ -22,7 +22,6 @@ int -attribute_hidden __pthread_attr_getinheritsched ( const pthread_attr_t *attr, int *inherit) diff --git a/libpthread/nptl/pthread_attr_getschedparam.c b/libpthread/nptl/pthread_attr_getschedparam.c index ee1d51339..82b237198 100644 --- a/libpthread/nptl/pthread_attr_getschedparam.c +++ b/libpthread/nptl/pthread_attr_getschedparam.c @@ -23,7 +23,6 @@ int -attribute_hidden __pthread_attr_getschedparam ( const pthread_attr_t *attr, struct sched_param *param) diff --git a/libpthread/nptl/pthread_attr_getschedpolicy.c b/libpthread/nptl/pthread_attr_getschedpolicy.c index 54666daba..7b8f1deb6 100644 --- a/libpthread/nptl/pthread_attr_getschedpolicy.c +++ b/libpthread/nptl/pthread_attr_getschedpolicy.c @@ -22,7 +22,6 @@ int -attribute_hidden __pthread_attr_getschedpolicy ( const pthread_attr_t *attr, int *policy) diff --git a/libpthread/nptl/pthread_attr_getscope.c b/libpthread/nptl/pthread_attr_getscope.c index ccbebfa43..9b05ffaea 100644 --- a/libpthread/nptl/pthread_attr_getscope.c +++ b/libpthread/nptl/pthread_attr_getscope.c @@ -22,7 +22,6 @@ int -attribute_hidden __pthread_attr_getscope ( const pthread_attr_t *attr, int *scope) diff --git a/libpthread/nptl/pthread_attr_init.c b/libpthread/nptl/pthread_attr_init.c index d01951489..65ce4e5e3 100644 --- a/libpthread/nptl/pthread_attr_init.c +++ b/libpthread/nptl/pthread_attr_init.c @@ -29,7 +29,6 @@ int __attr_list_lock = LLL_LOCK_INITIALIZER; int -attribute_hidden __pthread_attr_init_2_1 ( pthread_attr_t *attr) { diff --git a/libpthread/nptl/pthread_attr_setdetachstate.c b/libpthread/nptl/pthread_attr_setdetachstate.c index d72fd8360..b6d9bb52e 100644 --- a/libpthread/nptl/pthread_attr_setdetachstate.c +++ b/libpthread/nptl/pthread_attr_setdetachstate.c @@ -23,7 +23,6 @@ int -attribute_hidden __pthread_attr_setdetachstate (pthread_attr_t *attr, int detachstate) { struct pthread_attr *iattr; diff --git a/libpthread/nptl/pthread_attr_setinheritsched.c b/libpthread/nptl/pthread_attr_setinheritsched.c index d340df2d9..9d0234aaa 100644 --- a/libpthread/nptl/pthread_attr_setinheritsched.c +++ b/libpthread/nptl/pthread_attr_setinheritsched.c @@ -23,7 +23,6 @@ int -attribute_hidden __pthread_attr_setinheritsched ( pthread_attr_t *attr, int inherit) diff --git a/libpthread/nptl/pthread_attr_setschedparam.c b/libpthread/nptl/pthread_attr_setschedparam.c index aa7140060..741e641a6 100644 --- a/libpthread/nptl/pthread_attr_setschedparam.c +++ b/libpthread/nptl/pthread_attr_setschedparam.c @@ -24,7 +24,6 @@ int -attribute_hidden __pthread_attr_setschedparam ( pthread_attr_t *attr, const struct sched_param *param) diff --git a/libpthread/nptl/pthread_attr_setschedpolicy.c b/libpthread/nptl/pthread_attr_setschedpolicy.c index 055890b41..1d87b53c0 100644 --- a/libpthread/nptl/pthread_attr_setschedpolicy.c +++ b/libpthread/nptl/pthread_attr_setschedpolicy.c @@ -23,7 +23,6 @@ int -attribute_hidden __pthread_attr_setschedpolicy ( pthread_attr_t *attr, int policy) diff --git a/libpthread/nptl/pthread_attr_setscope.c b/libpthread/nptl/pthread_attr_setscope.c index 8155bead8..cc4e46708 100644 --- a/libpthread/nptl/pthread_attr_setscope.c +++ b/libpthread/nptl/pthread_attr_setscope.c @@ -23,7 +23,6 @@ int -attribute_hidden __pthread_attr_setscope ( pthread_attr_t *attr, int scope) diff --git a/libpthread/nptl/pthread_cond_destroy.c b/libpthread/nptl/pthread_cond_destroy.c index 6f13d97a4..b67b53506 100644 --- a/libpthread/nptl/pthread_cond_destroy.c +++ b/libpthread/nptl/pthread_cond_destroy.c @@ -22,7 +22,6 @@ int -attribute_hidden __pthread_cond_destroy ( pthread_cond_t *cond) { diff --git a/libpthread/nptl/pthread_cond_init.c b/libpthread/nptl/pthread_cond_init.c index e7a18e454..dec644465 100644 --- a/libpthread/nptl/pthread_cond_init.c +++ b/libpthread/nptl/pthread_cond_init.c @@ -22,7 +22,6 @@ int -attribute_hidden __pthread_cond_init ( pthread_cond_t *cond, const pthread_condattr_t *cond_attr) diff --git a/libpthread/nptl/pthread_condattr_destroy.c b/libpthread/nptl/pthread_condattr_destroy.c index b0da06094..bdb644152 100644 --- a/libpthread/nptl/pthread_condattr_destroy.c +++ b/libpthread/nptl/pthread_condattr_destroy.c @@ -21,7 +21,6 @@ int -attribute_hidden __pthread_condattr_destroy (pthread_condattr_t *attr) { /* Nothing to be done. */ diff --git a/libpthread/nptl/pthread_condattr_init.c b/libpthread/nptl/pthread_condattr_init.c index 05ab6a2b4..d22ca1e1d 100644 --- a/libpthread/nptl/pthread_condattr_init.c +++ b/libpthread/nptl/pthread_condattr_init.c @@ -22,7 +22,6 @@ int -attribute_hidden __pthread_condattr_init (pthread_condattr_t *attr) { memset (attr, '\0', sizeof (*attr)); diff --git a/libpthread/nptl/pthread_create.c b/libpthread/nptl/pthread_create.c index 0825873af..8b53cb199 100644 --- a/libpthread/nptl/pthread_create.c +++ b/libpthread/nptl/pthread_create.c @@ -44,7 +44,7 @@ static td_thr_events_t __nptl_threads_events __attribute_used__; static struct pthread *__nptl_last_event __attribute_used__; /* Number of threads running. */ -unsigned int attribute_hidden __nptl_nthreads = 1; +unsigned int __nptl_nthreads = 1; /* Code to allocate and deallocate a stack. */ diff --git a/libpthread/nptl/pthread_equal.c b/libpthread/nptl/pthread_equal.c index 4c9a24caf..8587e0f52 100644 --- a/libpthread/nptl/pthread_equal.c +++ b/libpthread/nptl/pthread_equal.c @@ -21,7 +21,6 @@ int -attribute_hidden __pthread_equal (pthread_t thread1, pthread_t thread2) { return thread1 == thread2; diff --git a/libpthread/nptl/pthread_exit.c b/libpthread/nptl/pthread_exit.c index de43cb886..a8c92fd29 100644 --- a/libpthread/nptl/pthread_exit.c +++ b/libpthread/nptl/pthread_exit.c @@ -22,7 +22,6 @@ void -attribute_hidden __pthread_exit (void* value) { THREAD_SETMEM (THREAD_SELF, result, value); diff --git a/libpthread/nptl/pthread_getschedparam.c b/libpthread/nptl/pthread_getschedparam.c index 9c6ea27ec..bb5f0a97e 100644 --- a/libpthread/nptl/pthread_getschedparam.c +++ b/libpthread/nptl/pthread_getschedparam.c @@ -24,7 +24,6 @@ int -attribute_hidden __pthread_getschedparam ( pthread_t threadid, int *policy, diff --git a/libpthread/nptl/pthread_getspecific.c b/libpthread/nptl/pthread_getspecific.c index 183595c67..62c48fe8e 100644 --- a/libpthread/nptl/pthread_getspecific.c +++ b/libpthread/nptl/pthread_getspecific.c @@ -22,7 +22,6 @@ void * -attribute_hidden __pthread_getspecific (pthread_key_t key) { struct pthread_key_data *data; diff --git a/libpthread/nptl/pthread_key_create.c b/libpthread/nptl/pthread_key_create.c index 21f60ad60..3744c08ad 100644 --- a/libpthread/nptl/pthread_key_create.c +++ b/libpthread/nptl/pthread_key_create.c @@ -23,7 +23,6 @@ int -attribute_hidden __pthread_key_create ( pthread_key_t *key, void (*destr) (void *)) diff --git a/libpthread/nptl/pthread_mutex_destroy.c b/libpthread/nptl/pthread_mutex_destroy.c index 5207433ef..f487d617a 100644 --- a/libpthread/nptl/pthread_mutex_destroy.c +++ b/libpthread/nptl/pthread_mutex_destroy.c @@ -22,7 +22,6 @@ int -attribute_hidden __pthread_mutex_destroy ( pthread_mutex_t *mutex) { diff --git a/libpthread/nptl/pthread_mutex_init.c b/libpthread/nptl/pthread_mutex_init.c index fee82cc5b..dd6e6d6fe 100644 --- a/libpthread/nptl/pthread_mutex_init.c +++ b/libpthread/nptl/pthread_mutex_init.c @@ -37,7 +37,6 @@ static int tpi_supported; int -attribute_hidden __pthread_mutex_init ( pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr) diff --git a/libpthread/nptl/pthread_mutex_lock.c b/libpthread/nptl/pthread_mutex_lock.c index d00e13546..47e4d4158 100644 --- a/libpthread/nptl/pthread_mutex_lock.c +++ b/libpthread/nptl/pthread_mutex_lock.c @@ -42,7 +42,6 @@ static int __pthread_mutex_lock_full (pthread_mutex_t *mutex) int -attribute_hidden __pthread_mutex_lock ( pthread_mutex_t *mutex) { diff --git a/libpthread/nptl/pthread_mutex_unlock.c b/libpthread/nptl/pthread_mutex_unlock.c index 15a5d1da9..f164cde3a 100644 --- a/libpthread/nptl/pthread_mutex_unlock.c +++ b/libpthread/nptl/pthread_mutex_unlock.c @@ -284,7 +284,6 @@ __pthread_mutex_unlock_full (pthread_mutex_t *mutex, int decr) int -attribute_hidden __pthread_mutex_unlock ( pthread_mutex_t *mutex) { diff --git a/libpthread/nptl/pthread_self.c b/libpthread/nptl/pthread_self.c index 61cb2a7be..f0e3b3f98 100644 --- a/libpthread/nptl/pthread_self.c +++ b/libpthread/nptl/pthread_self.c @@ -22,7 +22,6 @@ pthread_t -attribute_hidden __pthread_self (void) { return (pthread_t) THREAD_SELF; diff --git a/libpthread/nptl/pthread_setcancelstate.c b/libpthread/nptl/pthread_setcancelstate.c index 0da9a74f9..e53b52d67 100644 --- a/libpthread/nptl/pthread_setcancelstate.c +++ b/libpthread/nptl/pthread_setcancelstate.c @@ -23,7 +23,6 @@ int -attribute_hidden __pthread_setcancelstate ( int state, int *oldstate) diff --git a/libpthread/nptl/pthread_setcanceltype.c b/libpthread/nptl/pthread_setcanceltype.c index 3cb723537..47c104b02 100644 --- a/libpthread/nptl/pthread_setcanceltype.c +++ b/libpthread/nptl/pthread_setcanceltype.c @@ -23,7 +23,6 @@ int -attribute_hidden __pthread_setcanceltype ( |