i386: Use "movl main@GOT(%ebx), %eax" in start.S
commit955774751b71c4bc94029dd541ad9d34634ec995
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Oct 2017 00:54:13 +0000 (3 17:54 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Oct 2017 00:54:30 +0000 (3 17:54 -0700)
tree544c51fca2148ba93bf876fc0e714194a137dd89
parent02d2d8927d2fd3815a9f3c5c767aa71a8a33408e
i386: Use "movl main@GOT(%ebx), %eax" in start.S

Don't use "leal main@GOTOFF(%ebx), %eax" since main may be in a
shared object.  Linker will convert "movl main@GOT(%ebx), %eax"
to "leal main@GOTOFF(%ebx), %eax" if main is defined locally.

* sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
"movl main@GOTOFF(%ebx), %eax".
ChangeLog
sysdeps/i386/start.S