]> sourceware.org Git - glibc.git/commitdiff
Don't call internal _Unwind_Resume via PLT
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 18 May 2016 20:43:09 +0000 (13:43 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 18 May 2016 20:43:26 +0000 (13:43 -0700)
There is no need to call the internal funtion, _Unwind_Resume, which
is defined in unwind-forcedunwind.c, via PLT.

* sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
(__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
call.
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
(__condvar_cleanup1): Likewise.

ChangeLog
sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S

index 02db57a5eea3242fd8ce441fe94617182c087870..6fd5c45e4a3b17715353937c5af103be305d1221 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
+       (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
+       call.
+       * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
+       (__condvar_cleanup1): Likewise.
+
 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
index a2adc09b27ec255ae65fc9d4ad70734de3423ddb..82ffa1a37ebf9ba08c52041660ed0479ae5673fc 100644 (file)
@@ -586,7 +586,7 @@ __condvar_cleanup2:
        movq    FRAME_SIZE+16(%rsp), %r13
        movq    FRAME_SIZE+24(%rsp), %r12
 .LcallUR:
-       call    JUMPTARGET(_Unwind_Resume)
+       call    _Unwind_Resume
        hlt
 .LENDCODE:
        cfi_endproc
index c4d3504a6722b0333656bfeb7beab406c93203b0..c82f37baab65cd779b1b49dd7c565da52d254aa1 100644 (file)
@@ -518,7 +518,7 @@ __condvar_cleanup1:
 
 8:     movq    24(%rsp), %rdi
 .LcallUR:
-       call    JUMPTARGET(_Unwind_Resume)
+       call    _Unwind_Resume
        hlt
 .LENDCODE:
        cfi_endproc
This page took 0.188595 seconds and 5 git commands to generate.