aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/aix-toc-1b.s
blob: d4cee8a2385ea3732405a22b02a1982d607d6552 (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	asym\@[TC], \@ | 0x10000

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

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

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