summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/cr16/pic2.s
blob: 45b64034ca5d324df6503ce3923e46a1b2ac529d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
	.section .text
	.globl	_text_pointer
	.section	.data.rel
	.type	_text_pointer, @object
_text_pointer:
	.long	_text_address@c
	.section	.text
	.globl	_main
	.type	_main, @function
_main:
	######################
	# Data symbol with GOT
	######################
	loadd 	_text_pointer@GOT(r12), (r1,r0)
	######################
	# Code symbol with cGOT
	######################
	loadd 	_text_address_1@cGOT(r12), (r1,r0)

	.globl	_text_address_1
	.type	_text_address_1, @function
_text_address_1:
	jump	(ra)