[GOLD] ifunc tests

Ian Lance Taylor iant@google.com
Wed Mar 6 14:15:00 GMT 2013

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.


More information about the Binutils mailing list