This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: PATCH: Add ifunc attribute



__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.


However, there is an additional catch. What happens in option 1 if foo_ifunc is static? With mine, foo would not be static but foo_ifunc would be.


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