Handle STT_GNU_IFUNC symols when building shared library.
[binutils.git] / ld / testsuite / ld-ifunc / ifunc-12-x86-64.s
blob491684bdc23203c8b8c2a2484aea646bb9131022
1 .section .text.foo,"ax",@progbits
2 .type foo, @function
3 foo:
4 movl ifunc@GOTPCREL(%rip), %eax
5 movl ifunc(%rip), %eax
6 call ifunc@PLT
7 call ifunc
8 movl xxx(%rip), %eax
9 ret
11 .section .text.bar,"ax",@progbits
12 .type bar, @function
13 bar:
14 .global bar
15 ret
17 .section .text.ifunc,"ax",@progbits
18 .type ifunc, @gnu_indirect_function
19 ifunc:
20 ret
22 .section .data.foo,"aw",@progbits
23 xxx:
24 .quad ifunc