mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-17 13:00:43 +08:00
i386: Replace PREINIT_FUNCTION@PLT with *%eax in call
Since we have loaded address of PREINIT_FUNCTION into %eax, we can avoid extra branch to PLT slot. * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT with *%eax in call. Acked-by: Christian Brauner (Ubuntu) <christian@brauner.io>
This commit is contained in:
parent
98ee36c7a4
commit
a15529fda8
@ -1,3 +1,8 @@
|
||||
2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
|
||||
with *%eax in call.
|
||||
|
||||
2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* sysdeps/i386/ldsodefs.h: Removed.
|
||||
|
@ -68,7 +68,7 @@ _init:
|
||||
movl PREINIT_FUNCTION@GOT(%ebx), %eax
|
||||
testl %eax, %eax
|
||||
je .Lno_weak_fn
|
||||
call PREINIT_FUNCTION@PLT
|
||||
call *%eax
|
||||
.Lno_weak_fn:
|
||||
#else
|
||||
call PREINIT_FUNCTION
|
||||
|
Loading…
Reference in New Issue
Block a user