gold: Remove the circular IFUNC dependency in ifuncmain6pie
[deliverable/binutils-gdb.git] / gold / testsuite / ifuncmod6.c
CommitLineData
7223e9ca
ILT
1/* Test STT_GNU_IFUNC symbol reference in a shared library. */
2
3extern int foo (void);
4
5typedef int (*foo_p) (void);
6
7extern foo_p get_foo_p (void);
25294ff0 8extern int call_foo (void);
7223e9ca 9
25294ff0 10extern foo_p foo_ptr;
7223e9ca
ILT
11
12foo_p
13get_foo_p (void)
14{
15 return foo_ptr;
16}
17
25294ff0
L
18int
19call_foo (void)
7223e9ca 20{
25294ff0 21 return foo ();
7223e9ca 22}
This page took 0.459832 seconds and 4 git commands to generate.