ubuntu-buildroot/output/build/glibc-2.36-81-g4f4d7a13edfd.../elf/ifuncmod6.c

20 lines
229 B
C
Raw Normal View History

2024-04-01 15:19:46 +00:00
/* Test STT_GNU_IFUNC symbol reference in a shared library. */
extern int foo (void);
typedef int (*foo_p) (void);
extern foo_p foo_ptr;
foo_p
get_foo_p (void)
{
return foo_ptr;
}
int
call_foo (void)
{
return foo ();
}