Skip to content

Commit

Permalink
* sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
Browse files Browse the repository at this point in the history
	align stack for call if pltexit is to be used.
  • Loading branch information
Ulrich Drepper committed Aug 24, 2007
1 parent 73e3ff0 commit 44b2e58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2007-08-23 Ulrich Drepper <drepper@redhat.com>

* sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
align stack for call if pltexit is to be used.

[BZ #3924]
* sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
align for function call in case pltexit has to be called later.
Expand Down
7 changes: 4 additions & 3 deletions sysdeps/x86_64/dl-trampoline.S
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* PLT trampolines. x86-64 version.
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -120,13 +120,14 @@ _dl_runtime_profile:
leaq 104(%rsp), %rsi
movq %rsp, %rbx
cfi_def_cfa_register (1)
movq %r10, %rcx
addq $8, %r10
andq $0xfffffffffffffff0, %r10
subq %r10, %rsp
movq %rsp, %rdi
movq %r10, %rcx
shrq $3, %rcx
rep
movsq
andq $0xfffffffffffffff0, %rsp
movq 32(%rbx), %rcx
movq 40(%rbx), %rsi
movq 48(%rbx), %rdi
Expand Down

0 comments on commit 44b2e58

Please sign in to comment.