This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Add ifunc attribute
On Wed, Jun 24, 2009 at 6:16 AM, Paolo Bonzini<bonzini@gnu.org> wrote:
>
>>> __typeof (foo) *
>>> __attribute__ ((ifunc ("foo")))
>>> foo_ifunc (void)
>>> {
>>> ?<return address of foo_{1,2,3}>
>>> }
>>>
>>> you could call foo_ifunc if you wish in principle, and the header file
>>> only
>>> has the prototype of foo as expected.
>>
>> Since foo_ifunc isn't generated, you can't call foo_ifunc.
>
> So I guess mine is the fourth proposal. :-) ?Same as 1, but also generate
> foo_ifunc, for example via an alias.
>
The ifunc function is for dynamic linker and dynamic linker only.
It shouldn't be called by anyone else.
--
H.J.