]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-powerpc/notoc3.s
Power10 stub selection
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-powerpc / notoc3.s
1 .text
2 .globl f1, f2, g1, g2, _start
3 .weak ext
4 .abiversion 2
5
6 f1:
7 .localentry f1,1
8 bl f1@notoc
9 bl f2@notoc
10 bl g1@notoc
11 bl g2@notoc
12 bl ext@notoc
13 blr
14
15 g1:
16 .localentry g1,1
17 bl f2@notoc
18 bl f1@notoc
19 bl g2@notoc
20 bl g1@notoc
21 blr
22
23 f2:
24 0:
25 addis 2,12,.TOC.-0b@ha
26 addi 2,2,.TOC.-0b@l
27 .localentry f2,.-0b
28 bl f1
29 nop
30 bl f2
31 nop
32 bl g1
33 nop
34 bl g2
35 nop
36 bl ext
37 nop
38 blr
39
40 g2:
41 0:
42 addis 2,12,.TOC.-0b@ha
43 addi 2,2,.TOC.-0b@l
44 .localentry g2,.-0b
45 bl f2
46 nop
47 bl f1
48 nop
49 bl g2
50 nop
51 bl g1
52 nop
53 blr
54
55 _start:
56 .cfi_startproc
57 b _start
58 pld 3,_start
59 .cfi_endproc