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][x86_64] Convert indirect call via GOT to direct when possible


On 24 May 2016 at 18:58, Sriraman Tallam <tmsriram@google.com> wrote:
> On Tue, May 24, 2016 at 3:39 PM, Rafael EspÃndola
> <rafael.espindola@gmail.com> wrote:
>> You need a R_X86_64_GOTPCRELX.  Pass -mrelax-relocations=yes to a new
>> version of gas.
>
> Thanks! I will try that but why is this conversion not applicable for
> just R_X86_64_GOTPCREL?  What is the difference?

The guarantees. It is hard (impossible?) to disassemble backwards in
x86, so the assembler produces these relocations to let the linker
know that the transformation is safe.

Cheers,
Rafael


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