Fix minor CFI problem in regular x86-64 trampoline

This commit is contained in:
Ulrich Drepper 2011-08-20 08:58:44 -04:00
parent c88f17668b
commit 0276a718c0
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2011-08-20 Ulrich Drepper <drepper@gmail.com>
* sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
the very first instruction.
* sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
the CFI state in the end.
* sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first

View file

@ -27,8 +27,9 @@
.align 16
cfi_startproc
_dl_runtime_resolve:
cfi_adjust_cfa_offset(16) # Incorporate PLT
subq $56,%rsp
cfi_adjust_cfa_offset(72) # Incorporate PLT
cfi_adjust_cfa_offset(56)
movq %rax,(%rsp) # Preserve registers otherwise clobbered.
movq %rcx, 8(%rsp)
movq %rdx, 16(%rsp)