]> git.ipfire.org Git - thirdparty/glibc.git/blob - elf/ifuncmod6.c
elf: Refuse to dlopen PIE objects [BZ #24323]
[thirdparty/glibc.git] / elf / ifuncmod6.c
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 foo_p foo_ptr = foo;
8
9 foo_p
10 get_foo_p (void)
11 {
12 return foo_ptr;
13 }
14
15 foo_p
16 get_foo (void)
17 {
18 return foo;
19 }