What do IFUNC resolvers need to be useful?
Szabolcs Nagy
szabolcs.nagy@arm.com
Tue Mar 22 16:10:00 GMT 2016
On 22/03/16 15:13, Jose E. Marchesi wrote:
>
> > Should IFUNC resolver get passed in a pointer to the
> > environment?
>
> I think that it would be a great improvement.
>
> One can imagine to use that on the libc for example to temporarily
> disable the optimized functions. That can be useful for debugging,
> but also in our testsuite to test the various versions of a
> function.
>
> +1
>
> Sometimes old code breaks with new optimized routines, such as
> multithread issues in routines using block-initialize instructions in
> sparc. In these situations it would be very useful to disable certain
> versions of the routines.
>
> Also, it would allow users to easily benchmark the performance of the
> routines applications/platforms and choose the best implementation for
> them.
>
so what should happen if a signal interrupts setenv
and the signal handler calls a function through plt
that needs ifunc resolution..
More information about the Libc-alpha
mailing list