summaryrefslogtreecommitdiff
path: root/libpthread/nptl/unwind.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl/unwind.c')
-rw-r--r--libpthread/nptl/unwind.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpthread/nptl/unwind.c b/libpthread/nptl/unwind.c
index 0322a6023..8f60ae410 100644
--- a/libpthread/nptl/unwind.c
+++ b/libpthread/nptl/unwind.c
@@ -117,6 +117,9 @@ unwind_cleanup (_Unwind_Reason_Code reason, struct _Unwind_Exception *exc)
void
attribute_protected
__cleanup_fct_attribute __attribute ((noreturn))
+#if !defined SHARED && !defined IS_IN_LIBPTHREAD
+weak_function
+#endif
__pthread_unwind (__pthread_unwind_buf_t *buf)
{
struct pthread_unwind_buf *ibuf = (struct pthread_unwind_buf *) buf;