aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/ifuncmod6.c
blob: 89a50f931b489f9bcfbd4e948c42b3861055c5de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Test STT_GNU_IFUNC symbol reference in a shared library.  */

extern int foo (void);

typedef int (*foo_p) (void);

extern foo_p get_foo_p (void);
extern foo_p get_foo (void);

foo_p foo_ptr = foo;

foo_p
get_foo_p (void)
{
  return foo_ptr;
}

foo_p
get_foo (void)
{
  return foo;
}