[RFC] [gold] Simplify relocation strategy logic

Richard Sandiford rdsandiford@googlemail.com
Mon Mar 14 19:30:00 GMT 2011
Richard Sandiford <rdsandiford@googlemail.com> writes:
> The case where Symbol::needs_dynamic_reloc() _does_ need to describe
> the GOT entry itself is for the current definition of use_plt_offset().
> That function is called for all relocations (including GOT relocations)
> at the beginning of the target's relocate() function.  In the case of
> GOT relocs, use_plt_offset() says whether the _GOT entry_ should be
> redirected to the PLT.  (This is of course sometimes true for ifuncs,
> but should never be true otherwise.)

Um, sorry, obviously it's too late for me to be thinking straight.
Of course it's true sometimes for executables.

Richard



More information about the Binutils mailing list