This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Don't call internal __pthread_unwind via PLT
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 4 May 2016 10:54:18 -0700
- Subject: [PATCH] Don't call internal __pthread_unwind via PLT
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
There is no need to call the internal funtion, __GI___pthread_unwind,
in x86-64 cancellation.S.
Tested on x86-64. OK for master?
H.J.
---
* sysdeps/unix/sysv/linux/x86_64/cancellation.S (JUMPTARGET): New
if __pthread_unwind defined to __GI___pthread_unwind.
---
sysdeps/unix/sysv/linux/x86_64/cancellation.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sysdeps/unix/sysv/linux/x86_64/cancellation.S b/sysdeps/unix/sysv/linux/x86_64/cancellation.S
index 04a0e59..a00a254 100644
--- a/sysdeps/unix/sysv/linux/x86_64/cancellation.S
+++ b/sysdeps/unix/sysv/linux/x86_64/cancellation.S
@@ -24,6 +24,8 @@
#if IS_IN (libpthread)
# if defined SHARED && !defined NO_HIDDEN
# define __pthread_unwind __GI___pthread_unwind
+# undef JUMPTARGET
+# define JUMPTARGET(name) name
# endif
#else
# ifndef SHARED
--
2.5.5