aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/_mcount.S
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-03-01 16:58:07 -0800
committerH.J. Lu <hjl.tools@gmail.com>2016-03-01 16:58:07 -0800
commitec215346b92fdaef5d8042b5545e16beb7ccc7d1 (patch)
tree97f47ce77b7a57cf9727a7e3bad1221211ed4477 /sysdeps/x86_64/_mcount.S
parent521266a819be5b33b224f2e8358175c30c79f1c2 (diff)
downloadglibc-ec215346b92fdaef5d8042b5545e16beb7ccc7d1.tar
glibc-ec215346b92fdaef5d8042b5545e16beb7ccc7d1.tar.gz
glibc-ec215346b92fdaef5d8042b5545e16beb7ccc7d1.tar.bz2
glibc-ec215346b92fdaef5d8042b5545e16beb7ccc7d1.zip
Call x86-64 __mcount_internal/__sigjmp_save directly
Since __mcount_internal and __sigjmp_save are internal to x86-64 libc.so: 3532: 0000000000104530 289 FUNC LOCAL DEFAULT 13 __mcount_internal 3391: 0000000000034170 38 FUNC LOCAL DEFAULT 13 __sigjmp_save they can be called directly without PLT. * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call __mcount_internal directly. (C_LABEL(__fentry__)): Likewise. * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save directly.
Diffstat (limited to 'sysdeps/x86_64/_mcount.S')
-rw-r--r--sysdeps/x86_64/_mcount.S8
1 files changed, 0 insertions, 8 deletions
diff --git a/sysdeps/x86_64/_mcount.S b/sysdeps/x86_64/_mcount.S
index 5d7edd2a29..ba13643464 100644
--- a/sysdeps/x86_64/_mcount.S
+++ b/sysdeps/x86_64/_mcount.S
@@ -43,11 +43,7 @@ C_LABEL(_mcount)
movq 56(%rsp),%rsi
/* Get frompc via the frame pointer. */
movq 8(%rbp),%rdi
-#ifdef PIC
- call C_SYMBOL_NAME(__mcount_internal)@PLT
-#else
call C_SYMBOL_NAME(__mcount_internal)
-#endif
/* Pop the saved registers. Please note that `mcount' has no
return value. */
movq 48(%rsp),%r9
@@ -84,11 +80,7 @@ C_LABEL(__fentry__)
movq 64(%rsp),%rsi
/* caller is the return address above it */
movq 72(%rsp),%rdi
-#ifdef PIC
- call C_SYMBOL_NAME(__mcount_internal)@PLT
-#else
call C_SYMBOL_NAME(__mcount_internal)
-#endif
/* Pop the saved registers. Please note that `__fentry__' has no
return value. */
movq 48(%rsp),%r9