summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/cleanup_defer_compat.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2010-04-16 16:56:00 +0300
committerAustin Foxley <austinf@cetoncorp.com>2010-04-16 10:14:06 -0700
commita501a33e9761f32b3d38ab9f113892abe7cef3f1 (patch)
treeb40d9f2c93c4ed7ff094bddda0b38dfeb7fdf26d /libpthread/nptl/cleanup_defer_compat.c
parent0eadd98d30c51d26fde4062e6b8c48f3c9b5148d (diff)
downloaduClibc-alpine-a501a33e9761f32b3d38ab9f113892abe7cef3f1.tar.bz2
uClibc-alpine-a501a33e9761f32b3d38ab9f113892abe7cef3f1.tar.xz
nptl: mark forwarded functions protected
The libc stubs should never override the libpthread provided functions inside libpthread, otherwise the struct pthread_functions that is used by the forwarder stubs goes bad. Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/nptl/cleanup_defer_compat.c')
-rw-r--r--libpthread/nptl/cleanup_defer_compat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpthread/nptl/cleanup_defer_compat.c b/libpthread/nptl/cleanup_defer_compat.c
index 8fd9b5415..95fa4a061 100644
--- a/libpthread/nptl/cleanup_defer_compat.c
+++ b/libpthread/nptl/cleanup_defer_compat.c
@@ -21,6 +21,7 @@
void
+attribute_protected
_pthread_cleanup_push_defer (
struct _pthread_cleanup_buffer *buffer,
void (*routine) (void *),
@@ -60,6 +61,7 @@ strong_alias (_pthread_cleanup_push_defer, __pthread_cleanup_push_defer)
void
+attribute_protected
_pthread_cleanup_pop_restore (
struct _pthread_cleanup_buffer *buffer,
int execute)