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");
23 inhibit_stack_protector
26 return ifunc_one (one
);
29 extern int foo (void);
30 extern int call_foo (void);
31 extern foo_p
get_foo_p (void);
40 if (call_foo () != -30)
51 if ((*foo_ptr
) () != -30)