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>
+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.
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