File: elf-rel-got-n32.s

package info (click to toggle)
binutils 2.34-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 328,380 kB
  • sloc: ansic: 1,180,155; asm: 665,310; cpp: 130,540; exp: 69,822; makefile: 57,183; sh: 22,559; yacc: 14,469; lisp: 13,785; perl: 2,112; ada: 1,681; lex: 1,650; pascal: 1,446; cs: 879; sed: 195; python: 154; xml: 95; awk: 25
file content (167 lines) | stat: -rw-r--r-- 2,153 bytes parent folder | download | duplicates (25)
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# MIPS ELF GOT reloc n32

	.data
	.align	2
sp1:
	.space	60
	.globl	dg1
dg1:
dl1:
	.space	60


	.text

	.globl	fn
	.ent	fn
	.type	fn,@function
fn:
.Lfn:
	la	$5,dg1+0
	la	$5,dg1+12
	la	$5,dg1+123456
	la	$5,dg1+0($17)
	la	$5,dg1+12($17)
	la	$5,dg1+123456($17)

	lw	$5,dg1+0
	lw	$5,dg1+12
	lw	$5,dg1+0($17)
	lw	$5,dg1+12($17)
	lw	$5,dg1+34($5)
	sw	$5,dg1+56($5)

	ulw	$5,dg1+0
	ulw	$5,dg1+12
	ulw	$5,dg1+0($17)
	ulw	$5,dg1+12($17)
	ulw	$5,dg1+34($5)
	usw	$5,dg1+56($5)

	la	$5,dl1+0
	la	$5,dl1+12
	la	$5,dl1+123456
	la	$5,dl1+0($17)
	la	$5,dl1+12($17)
	la	$5,dl1+123456($17)

	lw	$5,dl1+0
	lw	$5,dl1+12
	lw	$5,dl1+0($17)
	lw	$5,dl1+12($17)
	lw	$5,dl1+34($5)
	sw	$5,dl1+56($5)

	ulw	$5,dl1+0
	ulw	$5,dl1+12
	ulw	$5,dl1+0($17)
	ulw	$5,dl1+12($17)
	ulw	$5,dl1+34($5)
	usw	$5,dl1+56($5)

	la	$5,fn
	la	$5,.Lfn
	la	$25,fn
	la	$25,.Lfn
	jal	fn
	jal	.Lfn


	la	$5,dg2+0
	la	$5,dg2+12
	la	$5,dg2+123456
	la	$5,dg2+0($17)
	la	$5,dg2+12($17)
	la	$5,dg2+123456($17)

	lw	$5,dg2+0
	lw	$5,dg2+12
	lw	$5,dg2+0($17)
	lw	$5,dg2+12($17)
	lw	$5,dg2+34($5)
	sw	$5,dg2+56($5)

	ulw	$5,dg2+0
	ulw	$5,dg2+12
	ulw	$5,dg2+0($17)
	ulw	$5,dg2+12($17)
	ulw	$5,dg2+34($5)
	usw	$5,dg2+56($5)

	la	$5,dl2+0
	la	$5,dl2+12
	la	$5,dl2+123456
	la	$5,dl2+0($17)
	la	$5,dl2+12($17)
	la	$5,dl2+123456($17)

	lw	$5,dl2+0
	lw	$5,dl2+12
	lw	$5,dl2+0($17)
	lw	$5,dl2+12($17)
	lw	$5,dl2+34($5)
	sw	$5,dl2+56($5)

	ulw	$5,dl2+0
	ulw	$5,dl2+12
	ulw	$5,dl2+0($17)
	ulw	$5,dl2+12($17)
	ulw	$5,dl2+34($5)
	usw	$5,dl2+56($5)

	la	$5,fn2
	la	$5,.Lfn2
	la	$25,fn2
	la	$25,.Lfn2
	jal	fn2
	jal	.Lfn2

# Check that filling delay slots doesn't break our relocations.

	la	$5,dg1
	b	.Lfn
	lw	$5,dg2
	b	.Lfn2

	la	$5,dl1
	b	.Lfn
	la	$5,dl2+12
	b	.Lfn2
	la	$5,dl1+123456
	b	.Lfn
	lw	$5,dl2
	b	.Lfn2
	lw	$5,dl1+12
	b	.Lfn
	lw	$5,dl2+34($5)
	b	.Lfn2

# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	2
	.space	8

	.end	fn

	.globl	fn2
	.ent	fn2
	.type	fn2,@function
fn2:
.Lfn2:
	.end	fn2

	.globl  __start
__start:
	
# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	2
	.space	8

	.data
	.align	2
sp2:
	.space	60
	.globl	dg2
dg2:
dl2:
	.space	60