This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFC] Add IFUNC support for MIPS
- From: Alan Modra <amodra at gmail dot com>
- To: Faraz Shahbazker <faraz dot shahbazker at imgtec dot com>, binutils at sourceware dot org, rdsandiford at googlemail dot com
- Date: Tue, 23 Jun 2015 15:40:45 +0930
- Subject: Re: [RFC] Add IFUNC support for MIPS
- Authentication-results: sourceware.org; auth=none
- References: <5583540C dot 7070800 at imgtec dot com> <87381jtr31 dot fsf at googlemail dot com>
On Mon, Jun 22, 2015 at 09:40:02PM +0100, Richard Sandiford wrote:
> > order of GOT entries is:
> > - local non-IFUNC GOT entries
> > - local IFUNC GOT entries
> > - normal global IFUNC GOT entries
> > - normal global non-IFUNC GOT entries
> > - reloc-only global non-IFUNC GOT entries
> > - reloc-only global IFUNC GOT entries
I recommend playing a little with ifunc resolvers in PIEs and shared
libraries that access a variable, with LD_BIND_NOW=1. You'll be in a
world of pain if the GOT entry for the variable isn't relocated before
the ifunc.
--
Alan Modra
Australia Development Lab, IBM