This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Use R10_LP to load frame size
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 14 May 2012 21:29:03 -0700
- Subject: PATCH: Use R10_LP to load frame size
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
This patch uses R10_LP to load frame size. Tested on Linux/x86-64
and Linux/x32. OK to install?
H.J.
---
* x86_64/dl-trampoline.h: Use R10_LP to load frame size.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
diff --git a/sysdeps/x86_64/dl-trampoline.h b/sysdeps/x86_64/dl-trampoline.h
index 4c18e69..563e153 100644
--- a/sysdeps/x86_64/dl-trampoline.h
+++ b/sysdeps/x86_64/dl-trampoline.h
@@ -44,7 +44,7 @@
movq 48(%rbx), %rdx # Load return address if needed.
movq 40(%rbx), %rsi # Copy args pushed by PLT in register.
movq 32(%rbx), %rdi # %rdi: link_map, %rsi: reloc_index
- leaq 16(%rbx), %r8
+ leaq 16(%rbx), %r8 # Address of framesize
call _dl_profile_fixup # Call resolver.
movq %rax, %r11 # Save return value.
@@ -140,8 +140,8 @@
1:
#endif
- movq 16(%rbx), %r10 # Anything in framesize?
- testq %r10, %r10
+ mov 16(%rbx), %R10_LP # Anything in framesize?
+ test %R10_LP, %R10_LP
jns 3f
/* There's nothing in the frame size, so there
--
1.7.6.5