Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-powerpc / aix-ref-1.s
blob33445a6d006a1d28bb647fd89ace3836d25dae7a
1 .macro loadtoc,sym
2 .if size == 32
3 lwz 1,\sym(2)
4 .else
5 ld 1,\sym(2)
6 .endif
7 .endm
9 .toc
10 LC01: .tc stuff[TC],stuff[RW]
12 .globl foo1
13 .csect foo1[pr]
14 foo1:
15 .align 8
16 nop
17 loadtoc LC01
19 .globl foo2
20 .csect foo2[pr]
21 foo2:
22 nop
23 loadtoc LC01
24 .ref foo4 , foo6
26 .globl foo3
27 .csect foo3[pr]
28 foo3:
29 nop
30 loadtoc LC01
32 .globl foo4
33 .csect foo4[pr]
34 foo4:
35 nop
36 loadtoc LC01
38 .globl foo5
39 .csect foo5[pr]
40 foo5:
41 nop
42 loadtoc LC01
43 .ref foo3
45 .globl foo6
46 .csect foo6[pr]
47 foo6:
48 nop
49 loadtoc LC01
51 .csect foo1[pr]
52 blr
53 .ref foo2
55 .csect stuff[rw]
56 stuff:
57 .long 1