mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 21:10:07 +00:00
X86-64: Correct CFA in _dl_runtime_resolve
When stack is re-aligned in _dl_runtime_resolve, there is no need to adjust CFA when allocating register save area on stack. * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't adjust CFA when allocating register save area on re-aligned stack.
This commit is contained in:
parent
6e263a27c4
commit
0ac8ee53e8
@ -1,3 +1,9 @@
|
|||||||
|
2016-08-26 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
|
||||||
|
adjust CFA when allocating register save area on re-aligned
|
||||||
|
stack.
|
||||||
|
|
||||||
2016-08-26 Florian Weimer <fweimer@redhat.com>
|
2016-08-26 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
* string/tst-cmp.c: New test.
|
* string/tst-cmp.c: New test.
|
||||||
|
@ -69,7 +69,9 @@ _dl_runtime_resolve:
|
|||||||
and $-VEC_SIZE, %RSP_LP
|
and $-VEC_SIZE, %RSP_LP
|
||||||
#endif
|
#endif
|
||||||
sub $REGISTER_SAVE_AREA, %RSP_LP
|
sub $REGISTER_SAVE_AREA, %RSP_LP
|
||||||
|
#if !DL_RUNTIME_RESOLVE_REALIGN_STACK
|
||||||
cfi_adjust_cfa_offset(REGISTER_SAVE_AREA)
|
cfi_adjust_cfa_offset(REGISTER_SAVE_AREA)
|
||||||
|
#endif
|
||||||
# Preserve registers otherwise clobbered.
|
# Preserve registers otherwise clobbered.
|
||||||
movq %rax, REGISTER_SAVE_RAX(%rsp)
|
movq %rax, REGISTER_SAVE_RAX(%rsp)
|
||||||
movq %rcx, REGISTER_SAVE_RCX(%rsp)
|
movq %rcx, REGISTER_SAVE_RCX(%rsp)
|
||||||
|
Loading…
Reference in New Issue
Block a user