This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR gold/17640


>> You still haven't explained why we need to look for the symbol
>> "_DYNAMIC" and treat it as a special case.
>
> This isn't the optimal code.  Compiler may generate
>
> movl %eax, %edx
> movl _DYNAMIC@GOT(%ecx), %eax
> addl %edx, %eax
>
> instead of
>
> addl _DYNAMIC@GOT(%ecx), %eax
>
> I just want to be on the safe side.

You're still not explaining. If the compiler generates that sequence,
and we convert the mov to lea, why do we need the GOT entry?

-cary


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]