i386: Replace PREINIT_FUNCTION@PLT with *%eax in call
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 14 May 2018 16:23:55 +0000 (09:23 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 14 May 2018 16:24:06 +0000 (09:24 -0700)
commita15529fda8d132621328c3fe32997a3d9c55aef4
treed1f18df73a78ab291842b0f91f5f939627eafc48
parent98ee36c7a44e140e2a85a2c4306e06176fb9e395
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>
ChangeLog
sysdeps/i386/crti.S