mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-11 03:40:06 +00:00
Change code a bit to correct CFI.
This commit is contained in:
parent
07df809969
commit
8e80581787
@ -74,6 +74,8 @@ ENTRY(____longjmp_chk)
|
|||||||
syscall
|
syscall
|
||||||
testl %eax, %eax
|
testl %eax, %eax
|
||||||
movl $0, %eax
|
movl $0, %eax
|
||||||
|
leaq 24(%rsp), %rsp
|
||||||
|
cfi_adjust_cfa_offset(-24)
|
||||||
jne .Lok
|
jne .Lok
|
||||||
movl 8(%rsp), %eax
|
movl 8(%rsp), %eax
|
||||||
andl $1, %eax
|
andl $1, %eax
|
||||||
@ -125,7 +127,7 @@ ENTRY(____longjmp_chk)
|
|||||||
|
|
||||||
.Lfail: xchgq %r8, %rsp
|
.Lfail: xchgq %r8, %rsp
|
||||||
/* We want the stack trace to show that of the caller. */
|
/* We want the stack trace to show that of the caller. */
|
||||||
cfi_def_cfa(%rsp, 32)
|
cfi_def_cfa(%rsp, 8)
|
||||||
cfi_restore(%rsp)
|
cfi_restore(%rsp)
|
||||||
cfi_register(%rbp, %r9)
|
cfi_register(%rbp, %r9)
|
||||||
cfi_restore(%rip)
|
cfi_restore(%rip)
|
||||||
|
Loading…
Reference in New Issue
Block a user