aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/nptl/jmp-unwind.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-21 19:49:50 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-21 19:49:50 +0200
commit4647ce82c733d1453611e35236b786ecd7faf598 (patch)
tree32c72ddfeca5dda088deccec73729f20bfe93b69 /sysdeps/nptl/jmp-unwind.c
parent5a3140b48978f0f690a5fee2f4a53705c02aabac (diff)
downloadglibc-4647ce82c733d1453611e35236b786ecd7faf598.tar
glibc-4647ce82c733d1453611e35236b786ecd7faf598.tar.gz
glibc-4647ce82c733d1453611e35236b786ecd7faf598.tar.bz2
glibc-4647ce82c733d1453611e35236b786ecd7faf598.zip
nptl: Move __pthread_cleanup_upto into libc
This internal symbol is used as part of the longjmp implementation. Rename the file from nptl/pt-cleanup.c to nptl/pthread_cleanup_upto.c so that the pt-* files remain restricted to libpthread. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/nptl/jmp-unwind.c')
-rw-r--r--sysdeps/nptl/jmp-unwind.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sysdeps/nptl/jmp-unwind.c b/sysdeps/nptl/jmp-unwind.c
index a79c792e82..96c4862c74 100644
--- a/sysdeps/nptl/jmp-unwind.c
+++ b/sysdeps/nptl/jmp-unwind.c
@@ -19,14 +19,10 @@
#include <setjmp.h>
#include <stddef.h>
#include <libc-lock.h>
-
-extern void __pthread_cleanup_upto (__jmp_buf env, char *targetframe);
-#pragma weak __pthread_cleanup_upto
-
+#include <nptl/pthreadP.h>
void
_longjmp_unwind (jmp_buf env, int val)
{
- __libc_ptf_call (__pthread_cleanup_upto, (env->__jmpbuf,
- CURRENT_STACK_FRAME), 0);
+ __pthread_cleanup_upto (env->__jmpbuf, CURRENT_STACK_FRAME);
}