aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s
blob: fb8eb813dbb6d5cb64e744cf8182f4fc80278fff (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
	.abicalls
	.set	nomips16
	.global	foo
	.ent	foo
foo:
	.set noreorder
	.cpload	$25
	.set reorder
	lw	$25,%call16(foo)($28)
	lw	$2,%got(data)($28)
	addiu	$2,$2,%lo(data)
	jrc	$25
	.end	foo

	.global	bar
	.ent	bar
bar:
	.set noreorder
	.cpload	$25
	.set reorder
	lw	$25,%call16(ext)($28)
	jrc	$25
	.end	bar

	.data
data:	.word	0x12345678