Skip to content

Commit

Permalink
Improve CFI in x86-64 ld.so trampoline code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jul 29, 2009
1 parent 09e0389 commit 649bf13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2009-07-29 Ulrich Drepper <drepper@redhat.com>

* sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI
information.

2009-07-28 H.J. Lu <hongjiu.lu@intel.com>

* sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/x86_64/dl-trampoline.S
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ _dl_runtime_resolve:
cfi_startproc

_dl_runtime_profile:
cfi_adjust_cfa_offset(16) # Incorporate PLT
/* The La_x86_64_regs data structure pointed to by the
fourth paramater must be 16-byte aligned. This must
be explicitly enforced. We have the set up a dynamically
sized stack frame. %rbx points to the top half which
has a fixed size and preserves the original stack pointer. */

subq $32, %rsp # Allocate the local storage.
cfi_adjust_cfa_offset(48) # Incorporate PLT
cfi_adjust_cfa_offset(32)
movq %rbx, (%rsp)
cfi_rel_offset(%rbx, 0)

Expand Down

0 comments on commit 649bf13

Please sign in to comment.