Add missing register preserve in x86/x86_64 longjmp.
Change-Id: I3fc442f819229640e9c0ec4f9c865d9bf0e70881
This commit is contained in:
parent
f96049062f
commit
8dbf02d76a
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user