aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/aix-glink-2c.s
blob: 7dd6dadc3c22e27e83b1ce201f4e3bef3d014900 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
	.toc

	.macro	defabs,type,name,value
	\type	\name
	\name	= \value
	.endm

	.macro	deffun,type,name
	\type	\name
	.csect	\name\()[DS]
\name\():
	.long	\name\()[PR],TOC[TC0],0

	.globl	.\name
	.csect	.\name\()[PR]
.\name\():
	nop
	.endm

	.macro	defdata,type,name,contents
	\type	\name
	.csect	\name\()[RW]
\name\():
	.long	\contents
	.endm

	defabs	.globl,a1,0xf400
	deffun	.globl,a2
	defdata	.globl,a3,0x4400

	defabs	.globl,c1,0xf500
	deffun	.globl,c2
	defdata	.globl,c3,0x5500