aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/jal-local-overflow.s
blob: 9b22f677dc644f5fae2bb3d35558dfe5c943dd64 (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
34
35
	.text
	.set	noreorder
	.org	0x2000

	.align	4
	.globl	foo
	.ent	foo
foo:
	jal	abar - 8
	 nor	$0, $0

	.aent	afoo
afoo:
	jal	afoo - 8
	 nor	$0, $0
	.end	foo

	.org	0x4000

	.align	4
	.globl	bar
	.ent	bar
bar:
	jal	afoo - 8
	 nor	$0, $0

	.aent	abar
abar:
	jal	abar - 8
	 nor	$0, $0
	.end	bar

# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	4, 0
	.space	16