mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
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.
This commit is contained in:
parent
21683b5a7d
commit
16b23e0363
@ -1,3 +1,9 @@
|
|||||||
|
2016-03-04 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
[BZ #19745]
|
||||||
|
* sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
|
||||||
|
with *%rax in call.
|
||||||
|
|
||||||
2016-03-04 H.J. Lu <hongjiu.lu@intel.com>
|
2016-03-04 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
[BZ #19745]
|
[BZ #19745]
|
||||||
|
@ -66,7 +66,7 @@ _init:
|
|||||||
movq PREINIT_FUNCTION@GOTPCREL(%rip), %rax
|
movq PREINIT_FUNCTION@GOTPCREL(%rip), %rax
|
||||||
testq %rax, %rax
|
testq %rax, %rax
|
||||||
je .Lno_weak_fn
|
je .Lno_weak_fn
|
||||||
call PREINIT_FUNCTION@PLT
|
call *%rax
|
||||||
.Lno_weak_fn:
|
.Lno_weak_fn:
|
||||||
#else
|
#else
|
||||||
call PREINIT_FUNCTION
|
call PREINIT_FUNCTION
|
||||||
|
Loading…
Reference in New Issue
Block a user