[RFC] Add IFUNC support for MIPS

Faraz Shahbazker faraz.shahbazker@imgtec.com
Mon Aug 3 15:29:00 GMT 2015


On 08/02/2015 06:08 AM, Richard Sandiford wrote:
> Faraz Shahbazker <faraz.shahbazker@imgtec.com> writes:
>> 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?
> 
> I don't think we can reasonably support that in the general case.
> E.g. in the attached testcase b.c has a pointer reference to foo,
> which in a.c is defined as an ifunc.  The ifunc resolver refers
> to relocated data in a.c.  That doesn't work on x86_64-linux-gnu:

I have dropped this completely from the recent patch. Thanks for the explanation though.

Regards,
Faraz



More information about the Binutils mailing list