From 94f3c30dc2d8193f977daf04414b1edd815ced83 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 17 Feb 2010 14:28:38 -0800 Subject: Assorted fixed to get nptl compiling on ARM Signed-off-by: Khem Raj --- libpthread/nptl/sysdeps/pthread/bits/libc-lock.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libpthread/nptl/sysdeps/pthread/bits/libc-lock.h') diff --git a/libpthread/nptl/sysdeps/pthread/bits/libc-lock.h b/libpthread/nptl/sysdeps/pthread/bits/libc-lock.h index 70fe6762f..3268aa5f6 100644 --- a/libpthread/nptl/sysdeps/pthread/bits/libc-lock.h +++ b/libpthread/nptl/sysdeps/pthread/bits/libc-lock.h @@ -61,6 +61,10 @@ typedef struct __libc_rwlock_opaque__ __libc_rwlock_t; /* Type for key to thread-specific data. */ typedef pthread_key_t __libc_key_t; +# define __libc_freeres_fn_section \ + __attribute__ ((section ("__libc_freeres_fn"))) + + /* Define a lock variable NAME with storage class CLASS. The lock must be initialized with __libc_lock_init before it can be used (or define it with __libc_lock_define_initialized, below). Use `extern' for CLASS to @@ -545,7 +549,7 @@ weak_extern (__pthread_key_create) weak_extern (__pthread_setspecific) weak_extern (__pthread_getspecific) weak_extern (__pthread_once) -weak_extern (__pthread_initialize) +//weak_extern (__pthread_initialize) weak_extern (__pthread_atfork) #ifdef SHARED weak_extern (_pthread_cleanup_push_defer) @@ -571,7 +575,7 @@ weak_extern (pthread_setcancelstate) # pragma weak __pthread_setspecific # pragma weak __pthread_getspecific # pragma weak __pthread_once -# pragma weak __pthread_initialize +//# pragma weak __pthread_initialize # pragma weak __pthread_atfork # pragma weak _pthread_cleanup_push_defer # pragma weak _pthread_cleanup_pop_restore -- cgit v1.2.3