This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Add IFUNC support for MIPS

On 06/23/2015 11:19 AM, Richard Sandiford wrote:
>> Sorry that you have to go through this all over again, but I'd like to
>> clarify this one point. Which is preferable?
>> - Earlier approach: perform IRELATIVE relocs implicitly for symbols in
>> shared objects while performing the GOT relocation.
>> vs. 
>> - Current proposed: each IRELATIVE reloc is explicitly processed as a
>> normal relocation, after all GOT relocations and all other relocations.
>> I tended towards this approach because of a multi-got test-case where
>> the resolver function needs symbols that have REL32 relocations.
> Yeah, I agree performing them later is better than original implicit
> approach.  But I don't think we gain anything by separating ifunc
> relocations from other relocations and tying the layout to the original
> ABI GOT scheme.

A chunk of the patch tries to address the link-order problem, namely:
If an external reference binds to an IFUNC resolver within another object which
has not been relocated at the time when the referring object is loaded, it is not
possible to invoke this IFUNC resolver to determine the resolved function.

Is this problem worth solving or should I leave it alone?

Faraz Shahbazker

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]