1 /* Test STT_GNU_IFUNC symbol reference in a shared library. */ 2 3 extern int foo (void); 4 5 typedef int (*foo_p) (void); 6 7 extern foo_p foo_ptr; 8 9 foo_p get_foo_p(void)10 get_foo_p (void) 11 { 12 return foo_ptr; 13 } 14 15 int call_foo(void)16 call_foo (void) 17 { 18 return foo (); 19 } 20