Convert load via GOT slot to load immediate

5 views
Skip to first unread message

H.J. Lu

unread,
Apr 24, 2016, 9:18:56 AM4/24/16
to IA32 System V Application Binary Interface, H. Peter Anvin
We should covert

mov foo@GOT, %reg2

and

mov foo@GOT(%reg1), %reg2

to

mov $foo, %reg2

instead of

lea foo, %reg2

if possible. The updated i386 psABI draft is at

https://github.com/hjl-tools/x86-psABI/wiki/intel386-psABI-draft.pdf

--
H.J.
0001-Convert-load-via-GOT-slot-to-load-immediate.patch
Reply all
Reply to author
Forward
0 new messages