This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFC] [gold] Simplify relocation strategy logic
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