This is the mail archive of the binutils@sourceware.org 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 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


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