aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/reloc-1b.s
blob: 8b9544ce0a4789c4bdea3620316e60b164eba92c (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
	.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)

	lui	$4,%got(tstartb - 0x8010)	# .text + 0x7fe0
	addiu	$4,$4,%lo(tstartb - 0x8010)
	lui	$4,%got(tstartb - 0x8000)	# .text + 0x7ff0
	addiu	$4,$4,%lo(tstartb - 0x8000)
	lui	$4,%got(tstartb)			# .text + 0xfff0
	addiu	$4,$4,%lo(tstartb)
	lui	$4,%got(tstartb + 0x7ff0)	# .text + 0x17fe0
	addiu	$4,$4,%lo(tstartb + 0x7ff0)
	lui	$4,%got(tstartb + 0x8010)	# .text + 0x18000
	addiu	$4,$4,%lo(tstartb + 0x8010)

	lui	$4,%got(t32b - 0x8010)		# .text + 0x8000
	addiu	$4,$4,%lo(t32b - 0x8010)
	lui	$4,%got(t32b - 0x8000)		# .text + 0x8010
	addiu	$4,$4,%lo(t32b - 0x8000)
	lui	$4,%got(t32b)			# .text + 0x10010
	addiu	$4,$4,%lo(t32b)
	lui	$4,%got(t32b + 0x7ff0)		# .text + 0x18000
	addiu	$4,$4,%lo(t32b + 0x7ff0)
	lui	$4,%got(t32b + 0x8010)		# .text + 0x18020
	addiu	$4,$4,%lo(t32b + 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