ELF: Don't check relocations in non-loaded, non-alloced sections
[deliverable/binutils-gdb.git] / ld / testsuite / ld-ifunc / ifunc-lib.c
CommitLineData
5f7cbeec
L
1static int
2one (void)
3{
4 return 1;
5}
6
7static int
8minus_one (void)
9{
10 return -1;
11}
12
13void * foo_ifunc (void) __asm__ ("foo");
14__asm__(".type foo, %gnu_indirect_function");
15
16void *
17foo_ifunc (void)
18{
19 return one;
20}
21
22void * bar_ifunc (void) __asm__ ("bar");
23__asm__(".type bar, %gnu_indirect_function");
24
25void *
26bar_ifunc (void)
27{
28 return minus_one;
29}
This page took 0.273565 seconds and 4 git commands to generate.