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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
|
@ we can relax local and non-weak globals for non-shared links
.text
.arm
.p2align 2
foo:
@tlscall global, manually relaxed to IE
ldr r0, 1f
2: ldr r0, [pc, r0]
nop
.p2align 2
1: .word gd1(gottpoff) + (. - 2b - 8)
.p2align 2
@tlscall global, should relax to IE
ldr r0, 1f
2: blx gd1(tlscall)
nop
.p2align 2
1: .word gd1(tlsdesc) + (. - 2b)
.p2align 2
@tlscall local, manually relaxed to LE
ldr r0, 1f
nop
nop
.p2align 2
1: .word ld1(tpoff)
.p2align 2
@tlscall local, should relax to LE
ldr r0, 1f
2: blx ld1(tlscall)
nop
.p2align 2
1: .word ld1(tlsdesc) + (. - 2b)
.p2align 2
@open coded global, manually relaxed to IE
ldr r0, 1f
2:
add r0, pc, r0
ldr r1, [r0]
mov r0, r1
nop
.p2align 2
1: .word gd1(gottpoff) + (. - 2b - 8)
.p2align 2
@open coded global, should relax to IE
ldr r0, 1f
2:
.tlsdescseq gd1
add r0, pc, r0
.tlsdescseq gd1
ldr r1, [r0,#4]
.tlsdescseq gd1
blx r1
nop
.p2align 2
1: .word gd1(tlsdesc) + (. - 2b)
.p2align 2
@open coded local, manually relaxed to LE
ldr r0, 1f
2:
nop
nop
nop
nop
.p2align 2
1: .word ld1(tpoff)
.p2align 2
@open coded local, should relax to LE
ldr r0, 1f
2:
.tlsdescseq ld1
add r0, pc, r0
.tlsdescseq ld1
ldr r1, [r0,#4]
.tlsdescseq ld1
blx r1
nop
.p2align 2
1: .word ld1(tlsdesc) + (. - 2b)
.thumb
.p2align 1
bar:
@tlscall global, manually relaxed to IE
ldr r0, 1f
2: add r0, pc, r0
ldr r0, [r0]
nop
.p2align 2
1: .word gd1(gottpoff) + (. - 2b - 4)
.p2align 1
@tlscall global, should relax to IE
ldr r0, 1f
2: blx gd1(tlscall)
nop
.p2align 2
1: .word gd1(tlsdesc) + (. - 2b + 1)
.p2align 1
@tlscall global, should relax to IE
ldr r0, 1f
2: blx r1(tlscall)
nop
.p2align 2
1: .word r1(tlsdesc) + (. - 2b + 1)
.p2align 1
@tlscall local, manually relaxed to LE
ldr r0, 1f
nop
nop
.p2align 2
1: .word ld1(tpoff)
.p2align 1
@tlscall local, should relax to LE
ldr r0, 1f
2: blx ld1(tlscall)
nop
.p2align 2
1: .word ld1(tlsdesc) + (. - 2b + 1)
.p2align 1
@tlscall local, should relax to LE
ldr r0, 1f
2: blx r0(tlscall)
nop
.p2align 2
1: .word r0(tlsdesc) + (. - 2b + 1)
.p2align 1
@open coded global, manually relaxed to IE
ldr r0, 1f
2:
add r0, pc
ldr r1, [r0]
mov r0, r1
nop
.p2align 2
1: .word gd1(gottpoff) + (. - 2b - 4)
.p2align 1
@open coded global, should relax to IE
ldr r0, 1f
2:
.tlsdescseq gd1
add r0, pc
.tlsdescseq gd1
ldr r1, [r0,#4]
.tlsdescseq gd1
blx r1
nop
.p2align 2
1: .word gd1(tlsdesc) + (. - 2b + 1)
.p2align 1
@open coded local, manually relaxed to LE
ldr r0, 1f
2:
nop
nop
nop
nop
.p2align 2
1: .word ld1(tpoff)
.p2align 1
@open coded local, should relax to LE
ldr r0, 1f
2:
.tlsdescseq ld1
add r0, pc
.tlsdescseq ld1
ldr r1, [r0,#4]
.tlsdescseq ld1
blx r1
nop
.p2align 2
1: .word ld1(tlsdesc) + (. - 2b + 1)
.section .tdata,"awT"
.global gd1
gd1: .space 4
ld1: .space 4
.globl r1
r1: .space 4
r0: .space 4
|