Add missing register preserve in x86/x86_64 longjmp.

Change-Id: I3fc442f819229640e9c0ec4f9c865d9bf0e70881
This commit is contained in:
Josh Gao 2015-10-07 13:51:59 -07:00
parent f96049062f
commit 8dbf02d76a
2 changed files with 4 additions and 0 deletions

View File

@ -151,9 +151,11 @@ ENTRY(siglongjmp)
PIC_PROLOGUE
pushl %eax
pushl %ecx
pushl (_JB_SIGFLAG * 4)(%edx)
call PIC_PLT(__bionic_setjmp_cookie_check)
addl $4,%esp
popl %ecx
popl %eax
PIC_EPILOGUE

View File

@ -159,8 +159,10 @@ ENTRY(siglongjmp)
// Check the cookie.
pushq %rax
pushq %r11
movq %rcx, %rdi
call PIC_PLT(__bionic_setjmp_cookie_check)
popq %r11
popq %rax
// Return 1 if value is 0.