summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mips/elf-rel6.s
blob: 6735d7555fad0572d9edebf0312b693956f7b037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
	.sdata
	.global	foo
	.globl	bar
foo:	.byte	1
	.byte	2
bar:	.byte	3
	.byte	4

	.text
	.set mips16
	.global	f
	.ent	f
f:
	lb	$2,%gprel(bar)($3)
	lb	$2,%gprel(bar+1)($3)
	.end	f

# align section end to 16-byte boundary for easier testing on multiple targets
	.p2align 4