[PATCH] Don't call internal __pthread_unwind via PLT
H.J. Lu
hongjiu.lu@intel.com
Wed May 4 17:54:00 GMT 2016
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
More information about the Libc-alpha
mailing list