[PATCH] PR gold/17640
H.J. Lu
hjl.tools@gmail.com
Wed Apr 1 15:15:00 GMT 2015
On Wed, Apr 1, 2015 at 7:00 AM, Ilya Tocar <tocarip.intel@gmail.com> wrote:
> On 30 Mar 11:47, Cary Coutant wrote:
>> +2015-03-18 Ilya Tocar <ilya.tocar@intel.com>
>> +
>> + PR gold/17640
>> + * i386.cc (Target_i386::Scan::local): Don't create GOT entry, when we
>> + can convert GOT to GOTOFF.
>> + (Target_i386::Scan::global): Ditto.
>> + (Target_i386::Relocate::relocate): Convert mov foo@GOT(%reg), %reg to
>> + lea foo@GOTOFF(%reg), %reg if possible.
>> + * testsuite/Makefile.am (i386_mov_to_lea): New test.
>> + * testsuite/i386_mov_to_lea1.s: New.
>> + * testsuite/i386_mov_to_lea2.s: Ditto.
>> + * testsuite/i386_mov_to_lea3.s: Ditto.
>> + * testsuite/i386_mov_to_lea4.s: Ditto.
>> + * testsuite/i386_mov_to_lea5.s: Ditto.
>> + * testsuite/i386_mov_to_lea.sh: Ditto.
>>
>> ChangeLog needs an entry for Sized_target::can_convert_mov_to_lea.
>>
>> + // If the relocation symbol isn't IFUNC,
>> + // and is local, then we will convert
>> + // mov foo@GOT(%reg), %reg
>> + // to
>> + // lea foo@GOTOFF(%reg), %reg
>> + // in Relocate::relocate
>>
>> In comments, please end sentences with periods.
>>
>> This is OK with those fixes. Thanks!
>>
>> -cary
>
> Thanks!
>
> I've committed version below.
>
Thanks.
Please add yourself to Write After Approval list
in binutils/MAINTAINERS.
Please also fix:
https://sourceware.org/bugzilla/show_bug.cgi?id=17641
--
H.J.
More information about the Binutils
mailing list