elf: Use errcode instead of (unset) errno in rtld_chain_load
[glibc.git] / elf / ifuncmod6.c
blob2f6d0715e6e9ff992323ca436c12ac5037d51055
1 /* Test STT_GNU_IFUNC symbol reference in a shared library. */
3 extern int foo (void);
5 typedef int (*foo_p) (void);
7 extern foo_p foo_ptr;
9 foo_p
10 get_foo_p (void)
12 return foo_ptr;
15 int
16 call_foo (void)
18 return foo ();