This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Mips}Using DT tags for handling local ifuncs
- From: Alan Modra <amodra at gmail dot com>
- To: Jack Carter <Jack dot Carter at imgtec dot com>
- Cc: Richard Sandiford <rdsandiford at googlemail dot com>, "Maciej W. Rozycki" <macro at codesourcery dot com>, "binutils at sourceware dot org" <binutils at sourceware dot org>, Doug Gilmore <Doug dot Gilmore at imgtec dot com>
- Date: Thu, 12 Dec 2013 12:20:48 +1030
- Subject: Re: [Mips}Using DT tags for handling local ifuncs
- Authentication-results: sourceware.org; auth=none
- References: <4CEFBC1BE64A8048869F799EF2D2EEEE4C6DDFC3 at BADAG02 dot ba dot imgtec dot org> <87ob4p6qdt dot fsf at talisman dot default> <87k3fd6owc dot fsf at talisman dot default> <4CEFBC1BE64A8048869F799EF2D2EEEE4C6DE23E at BADAG02 dot ba dot imgtec dot org> <87txef6a07 dot fsf at talisman dot default> <4CEFBC1BE64A8048869F799EF2D2EEEE4C6DE3B8 at BADAG02 dot ba dot imgtec dot org> <87haaf5hbg dot fsf at talisman dot default> <4CEFBC1BE64A8048869F799EF2D2EEEE4C6DE50C at BADAG02 dot ba dot imgtec dot org> <877gbb5c2k dot fsf at talisman dot default> <4CEFBC1BE64A8048869F799EF2D2EEEE4C6DE59A at BADAG02 dot ba dot imgtec dot org>
On Wed, Dec 11, 2013 at 10:48:43PM +0000, Jack Carter wrote:
> > but the processing order would be:
> >
> > local GOT
> > global GOT
> > .rel.dyn (including ER GOT)
>
> So what? It doesn't matter what the order is for processing. The locations matter
> if we think that we might want to tap into the dynsym table later.
The order in which relocations are processed certainly does matter.
ifunc resolver functions are called during relocation processing. You
don't want to call a resolver before relocations it needs (eg. got
relocs to access a global var) have been applied.
It is possible to enforce this ordering in ld.so, but that means
another pass over dynamic relocations..
--
Alan Modra
Australia Development Lab, IBM