Don't call internal __pthread_unwind via PLT

Message ID 20160504175417.GA22590@intel.com
State New, archived
Headers

Commit Message

Lu, Hongjiu May 4, 2016, 5:54 p.m. UTC
  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(+)
  

Patch

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