aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/aix-toc-1a.s
blob: e67d5d3181cdea80db79d71f70221ce782ba35e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
	.macro  loadtoc
	.toc
	.tc	sym\@[TC], \@

	.csect	.f1[PR]
	.if     size == 32
	lwz     1,sym\@[TC](2)
	.else
	ld      1,sym\@[TC](2)
	.endif
	.endm

	.globl	.f1
	.csect	.f1[PR]
.f1:
	.rept	0x7ffc * 8 / size
	loadtoc
	.endr

	.globl	f1
	.csect	f1[DS]
f1:
	.long	.f1[PR],TOC[TC0],0