1 /* Test STT_GNU_IFUNC symbols in PIE:
3 1. Direct function call.
5 3. Reference from a shared library.
11 typedef int (*foo_p
) (void);
19 void * foo_ifunc (void) __asm__ ("foo");
20 __asm__(".type foo, %gnu_indirect_function");
25 return ifunc_one (one
);
28 extern int foo (void);
29 extern int call_foo (void);
30 extern foo_p
get_foo_p (void);
39 if (call_foo () != -30)
50 if ((*foo_ptr
) () != -30)