This is the mail archive of the
mailing list for the GCC project.
Re: PATCH: Add ifunc attribute
On Fri, Jun 26, 2009 at 3:10 PM, Roland McGrath<email@example.com> wrote:
>> along with its static Linux/ia32 binary. How do you
>> write a similar prog.C in C++ with your ifunc attribute
> The only difference is using (Class::*) vs (*) in the return type of the
> foo_finder functions. ?Did I missing something obvious?
The one problem with using asm () for C++ name mangling is
it isn't easy to figure out what the assembly symbol one is.
If you change the function prototype, you have to figure
out the assembly name again.
virtual void foo1 ()
printf ("I am %s\n", __PRETTY_FUNCTION__);
virtual void __attribute__ ((ifunc)) foo ()
there is no such problem.