From 730bee725a770b543181424b52203dd1634ab5d1 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 3 Aug 2011 19:45:21 -0400 Subject: fix static linking dependency bloat with cancellation previously, pthread_cleanup_push/pop were pulling in all of pthread_create due to dependency on the __pthread_unwind_next function. this was not needed, as cancellation cleanup handlers can never be called unless pthread_exit or pthread_cancel is reachable. --- src/thread/i386/cancellation2.s | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/thread/i386/cancellation2.s') diff --git a/src/thread/i386/cancellation2.s b/src/thread/i386/cancellation2.s index 4e4438b5..beeffb91 100644 --- a/src/thread/i386/cancellation2.s +++ b/src/thread/i386/cancellation2.s @@ -14,3 +14,11 @@ __pthread_unregister_cancel: call __pthread_unregister_cancel_3 popl %eax ret + +.global __pthread_unwind_next +.type __pthread_unwind_next,@function +__pthread_unwind_next: + pushl %eax + call __pthread_unwind_next_3 + popl %eax + ret -- cgit v1.2.1