summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.s
blob: 571c774cdf7d578f2f2e08b8e512a122bfe14b0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
	.abicalls
	.option	pic0
	.global	__start
	.ent	__start
__start:
	jal	foo
	j	ext
	.end	__start

	.global	ext
	.ent	ext
ext:
	lui	$gp,%hi(__gnu_local_gp)
	addiu	$gp,$gp,%lo(__gnu_local_gp)
	lw	$2,%got(local)($gp)
	addiu	$2,$2,%lo(local)
	lw	$25,%call16(bar)($gp)
	jr	$25
	.end	ext

	.data
local:	.word	1