diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-03-04 15:36:18 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-03-04 16:15:41 -0800 |
commit | 16b23e03632623cd81a21fc5a24db546595addac (patch) | |
tree | ccaaa129b0d8e1a0060809309be814ee7746e236 /sysdeps/x86_64 | |
parent | 21683b5a7d9b8460e120e061f66a6ad84fa47e98 (diff) | |
download | glibc-16b23e03632623cd81a21fc5a24db546595addac.tar.gz glibc-16b23e03632623cd81a21fc5a24db546595addac.tar.xz glibc-16b23e03632623cd81a21fc5a24db546595addac.zip |
Replace PREINIT_FUNCTION@PLT with *%rax in call
Since we have loaded address of PREINIT_FUNCTION into %rax, we can avoid extra branch to PLT slot. [BZ #19745] * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT with *%rax in call.
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r-- | sysdeps/x86_64/crti.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86_64/crti.S b/sysdeps/x86_64/crti.S index a34525974a..e9d86ed08a 100644 --- a/sysdeps/x86_64/crti.S +++ b/sysdeps/x86_64/crti.S @@ -66,7 +66,7 @@ _init: movq PREINIT_FUNCTION@GOTPCREL(%rip), %rax testq %rax, %rax je .Lno_weak_fn - call PREINIT_FUNCTION@PLT + call *%rax .Lno_weak_fn: #else call PREINIT_FUNCTION |