This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [GOLD] ifunc tests
On Wed, Mar 6, 2013 at 3:45 AM, Alan Modra <amodra@gmail.com> wrote:
> ifuncmain1pie and ifuncmain6pie fail on powerpc, because the ifunc
> resolver function runs *before* all GOT relocations have been applied.
> (The tests all pass on powerpc64 with a recent gcc due to
> -mcmodel=medium avoiding the GOT/TOC. They fail with any other
> -mcmodel.)
I don't understand why the ifunc relocations can't be run after all
the other relocations are applied. That is how it works on x86. Gold
uses a separate reloc section for the IRELATIVE relocs and puts it
after the other reloc sections. The dynamic linker then processes the
relocs in order.
Ian