ld: Update function prototypes for compilers defaulting to -std=gnu23
[binutils-gdb.git] / ld / testsuite / ld-loongarch-elf / ifunc-reloc.s
blobe59f2b20e36c3879b554db575f73e615cd5e4521
1 .globl foo
2 .globl foo_hidden1
3 .globl foo_hidden2
4 .globl foo_protected
6 .type foo, %gnu_indirect_function
7 .type foo_hidden1, %gnu_indirect_function
8 .type foo_hidden2, %gnu_indirect_function
9 .type foo_protected, %gnu_indirect_function
10 .type foo_internal, %gnu_indirect_function
12 .hidden foo_hidden1
13 .hidden foo_hidden2
15 .protected foo_protected
17 .globl ext_ifunc1
18 .globl ext_ifunc2
19 .type ext_ifunc1, %gnu_indirect_function
20 .type ext_ifunc2, %gnu_indirect_function
22 .text
23 .align 2
24 foo:
25 ret
27 foo_hidden1:
28 ret
30 foo_hidden2:
31 ret
33 foo_protected:
34 ret
36 foo_internal:
37 ret
39 test:
40 la.got $a0, num
41 # The order is deliberately shuffled.
42 bl ext_ifunc1
43 bl foo
44 bl foo_hidden1
45 bl ext_func1
46 bl foo_protected
47 bl foo_internal
48 bl foo_hidden2
49 bl ext_func2
50 bl ext_ifunc2
52 .data
53 .align 3
54 num:
55 .quad 114514