aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/reloc-2b.s
blob: 3a9d694054aff432b33013106fd645c2f2d15178 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
	.set	noreorder
	.ent	tstartb
tstartb:
	lui	$4,%hi(tstartb - 0x8010)	# .text + 0x7fe0
	addiu	$4,$4,%lo(tstartb - 0x8010)
	lui	$4,%hi(tstartb - 0x8000)	# .text + 0x7ff0
	addiu	$4,$4,%lo(tstartb - 0x8000)
	lui	$4,%hi(tstartb)			# .text + 0xfff0
	addiu	$4,$4,%lo(tstartb)
	lui	$4,%hi(tstartb + 0x7ff0)	# .text + 0x17fe0
	addiu	$4,$4,%lo(tstartb + 0x7ff0)
t32b:
	lui	$4,%hi(tstartb + 0x8010)	# .text + 0x18000
	addiu	$4,$4,%lo(tstartb + 0x8010)

	lui	$4,%hi(t32b - 0x8010)		# .text + 0x8000
	addiu	$4,$4,%lo(t32b - 0x8010)
	lui	$4,%hi(t32b - 0x8000)		# .text + 0x8010
	addiu	$4,$4,%lo(t32b - 0x8000)
	lui	$4,%hi(t32b)			# .text + 0x10010
	addiu	$4,$4,%lo(t32b)
	lui	$4,%hi(t32b + 0x7ff0)		# .text + 0x18000
	addiu	$4,$4,%lo(t32b + 0x7ff0)
	lui	$4,%hi(t32b + 0x8010)		# .text + 0x18020
	addiu	$4,$4,%lo(t32b + 0x8010)

	lui	$4,%hi(_start - 0x8010)
	addiu	$4,$4,%lo(_start - 0x8010)
	lui	$4,%hi(_start - 0x8000)
	addiu	$4,$4,%lo(_start - 0x8000)
	lui	$4,%hi(_start)
	addiu	$4,$4,%lo(_start)
	lui	$4,%hi(_start + 0x7ff0)
	addiu	$4,$4,%lo(_start + 0x7ff0)
	lui	$4,%hi(_start + 0x8010)
	addiu	$4,$4,%lo(_start + 0x8010)

	addiu	$4,$4,%gp_rel(sdg - 4)
	addiu	$4,$4,%gp_rel(sdg)
	addiu	$4,$4,%gp_rel(sdg + 4)

	addiu	$4,$4,%gp_rel(sdlb - 4)
	addiu	$4,$4,%gp_rel(sdlb)
	addiu	$4,$4,%gp_rel(sdlb + 4)

	jal	tstartb - 4			# .text + 0xffec
	nop
	jal	tstartb				# .text + 0xfff0
	nop
	jal	tstartb + 4			# .text + 0xfff4
	nop

	jal	t32b - 4			# .text + 0x1000c
	nop
	jal	t32b				# .text + 0x10010
	nop
	jal	t32b + 4			# .text + 0x10014
	nop

	jal	_start - 4
	nop
	jal	_start
	nop
	jal	_start + 4
	nop

	.space	16
	.end	tstartb

	.section .sdata
	.space	16
sdlb:
	.space	16