clarify the purpose of this project
[nyanglibc.git] / nptl / forward.shared.s
blob31bfcd22c0738eb3e96dc25197f1b784ac96c4c7
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .symver __pthread_cond_broadcast_2_0,pthread_cond_broadcast@GLIBC_2.2.5
7 .symver __pthread_cond_broadcast,pthread_cond_broadcast@@GLIBC_2.3.2
8 .symver __pthread_cond_signal_2_0,pthread_cond_signal@GLIBC_2.2.5
9 .symver __pthread_cond_signal,pthread_cond_signal@@GLIBC_2.3.2
10 .symver __pthread_cond_wait_2_0,pthread_cond_wait@GLIBC_2.2.5
11 .symver __pthread_cond_wait,pthread_cond_wait@@GLIBC_2.3.2
12 .symver __pthread_cond_timedwait_2_0,pthread_cond_timedwait@GLIBC_2.2.5
13 .symver __pthread_cond_timedwait,pthread_cond_timedwait@@GLIBC_2.3.2
14 #NO_APP
15 .section .text.compat,"ax",@progbits
16 .p2align 4,,15
17 .globl __pthread_cond_broadcast_2_0
18 .type __pthread_cond_broadcast_2_0, @function
19 __pthread_cond_broadcast_2_0:
20 movl __libc_pthread_functions_init(%rip), %eax
21 testl %eax, %eax
22 je .L1
23 movq 32+__libc_pthread_functions(%rip), %rax
24 #APP
25 # 60 "forward.c" 1
26 ror $2*8+1, %rax
27 xor %fs:48, %rax
28 # 0 "" 2
29 #NO_APP
30 jmp *%rax
31 .p2align 4,,10
32 .p2align 3
33 .L1:
34 xorl %eax, %eax
35 ret
36 .size __pthread_cond_broadcast_2_0, .-__pthread_cond_broadcast_2_0
37 .text
38 .p2align 4,,15
39 .globl __pthread_cond_broadcast
40 .type __pthread_cond_broadcast, @function
41 __pthread_cond_broadcast:
42 movl __libc_pthread_functions_init(%rip), %eax
43 testl %eax, %eax
44 je .L4
45 movq __libc_pthread_functions(%rip), %rax
46 #APP
47 # 65 "forward.c" 1
48 ror $2*8+1, %rax
49 xor %fs:48, %rax
50 # 0 "" 2
51 #NO_APP
52 jmp *%rax
53 .p2align 4,,10
54 .p2align 3
55 .L4:
56 xorl %eax, %eax
57 ret
58 .size __pthread_cond_broadcast, .-__pthread_cond_broadcast
59 .section .text.compat
60 .p2align 4,,15
61 .globl __pthread_cond_signal_2_0
62 .type __pthread_cond_signal_2_0, @function
63 __pthread_cond_signal_2_0:
64 movl __libc_pthread_functions_init(%rip), %eax
65 testl %eax, %eax
66 je .L6
67 movq 40+__libc_pthread_functions(%rip), %rax
68 #APP
69 # 70 "forward.c" 1
70 ror $2*8+1, %rax
71 xor %fs:48, %rax
72 # 0 "" 2
73 #NO_APP
74 jmp *%rax
75 .p2align 4,,10
76 .p2align 3
77 .L6:
78 xorl %eax, %eax
79 ret
80 .size __pthread_cond_signal_2_0, .-__pthread_cond_signal_2_0
81 .text
82 .p2align 4,,15
83 .globl __pthread_cond_signal
84 .type __pthread_cond_signal, @function
85 __pthread_cond_signal:
86 movl __libc_pthread_functions_init(%rip), %eax
87 testl %eax, %eax
88 je .L8
89 movq 8+__libc_pthread_functions(%rip), %rax
90 #APP
91 # 75 "forward.c" 1
92 ror $2*8+1, %rax
93 xor %fs:48, %rax
94 # 0 "" 2
95 #NO_APP
96 jmp *%rax
97 .p2align 4,,10
98 .p2align 3
99 .L8:
100 xorl %eax, %eax
102 .size __pthread_cond_signal, .-__pthread_cond_signal
103 .section .text.compat
104 .p2align 4,,15
105 .globl __pthread_cond_wait_2_0
106 .type __pthread_cond_wait_2_0, @function
107 __pthread_cond_wait_2_0:
108 movl __libc_pthread_functions_init(%rip), %eax
109 testl %eax, %eax
110 je .L10
111 movq 48+__libc_pthread_functions(%rip), %rax
112 #APP
113 # 80 "forward.c" 1
114 ror $2*8+1, %rax
115 xor %fs:48, %rax
116 # 0 "" 2
117 #NO_APP
118 jmp *%rax
119 .p2align 4,,10
120 .p2align 3
121 .L10:
122 xorl %eax, %eax
124 .size __pthread_cond_wait_2_0, .-__pthread_cond_wait_2_0
125 .text
126 .p2align 4,,15
127 .globl __pthread_cond_wait
128 .type __pthread_cond_wait, @function
129 __pthread_cond_wait:
130 movl __libc_pthread_functions_init(%rip), %eax
131 testl %eax, %eax
132 je .L12
133 movq 16+__libc_pthread_functions(%rip), %rax
134 #APP
135 # 86 "forward.c" 1
136 ror $2*8+1, %rax
137 xor %fs:48, %rax
138 # 0 "" 2
139 #NO_APP
140 jmp *%rax
141 .p2align 4,,10
142 .p2align 3
143 .L12:
144 xorl %eax, %eax
146 .size __pthread_cond_wait, .-__pthread_cond_wait
147 .section .text.compat
148 .p2align 4,,15
149 .globl __pthread_cond_timedwait_2_0
150 .type __pthread_cond_timedwait_2_0, @function
151 __pthread_cond_timedwait_2_0:
152 movl __libc_pthread_functions_init(%rip), %eax
153 testl %eax, %eax
154 je .L14
155 movq 56+__libc_pthread_functions(%rip), %rax
156 #APP
157 # 92 "forward.c" 1
158 ror $2*8+1, %rax
159 xor %fs:48, %rax
160 # 0 "" 2
161 #NO_APP
162 jmp *%rax
163 .p2align 4,,10
164 .p2align 3
165 .L14:
166 xorl %eax, %eax
168 .size __pthread_cond_timedwait_2_0, .-__pthread_cond_timedwait_2_0
169 .text
170 .p2align 4,,15
171 .globl __pthread_cond_timedwait
172 .type __pthread_cond_timedwait, @function
173 __pthread_cond_timedwait:
174 movl __libc_pthread_functions_init(%rip), %eax
175 testl %eax, %eax
176 je .L16
177 movq 24+__libc_pthread_functions(%rip), %rax
178 #APP
179 # 99 "forward.c" 1
180 ror $2*8+1, %rax
181 xor %fs:48, %rax
182 # 0 "" 2
183 #NO_APP
184 jmp *%rax
185 .p2align 4,,10
186 .p2align 3
187 .L16:
188 xorl %eax, %eax
190 .size __pthread_cond_timedwait, .-__pthread_cond_timedwait
191 .p2align 4,,15
192 .globl __pthread_exit
193 .type __pthread_exit, @function
194 __pthread_exit:
195 subq $8, %rsp
196 movl __libc_pthread_functions_init(%rip), %eax
197 testl %eax, %eax
198 je .L21
199 movq 64+__libc_pthread_functions(%rip), %rax
200 #APP
201 # 106 "forward.c" 1
202 ror $2*8+1, %rax
203 xor %fs:48, %rax
204 # 0 "" 2
205 #NO_APP
206 call *%rax
207 .L21:
208 xorl %edi, %edi
209 call __GI_exit
210 .size __pthread_exit, .-__pthread_exit
211 .globl pthread_exit
212 .set pthread_exit,__pthread_exit
213 .p2align 4,,15
214 .globl pthread_mutex_destroy
215 .type pthread_mutex_destroy, @function
216 pthread_mutex_destroy:
217 movl __libc_pthread_functions_init(%rip), %eax
218 testl %eax, %eax
219 je .L22
220 movq 72+__libc_pthread_functions(%rip), %rax
221 #APP
222 # 111 "forward.c" 1
223 ror $2*8+1, %rax
224 xor %fs:48, %rax
225 # 0 "" 2
226 #NO_APP
227 jmp *%rax
228 .p2align 4,,10
229 .p2align 3
230 .L22:
231 xorl %eax, %eax
233 .size pthread_mutex_destroy, .-pthread_mutex_destroy
234 .p2align 4,,15
235 .globl pthread_mutex_init
236 .type pthread_mutex_init, @function
237 pthread_mutex_init:
238 movl __libc_pthread_functions_init(%rip), %eax
239 testl %eax, %eax
240 je .L24
241 movq 80+__libc_pthread_functions(%rip), %rax
242 #APP
243 # 113 "forward.c" 1
244 ror $2*8+1, %rax
245 xor %fs:48, %rax
246 # 0 "" 2
247 #NO_APP
248 jmp *%rax
249 .p2align 4,,10
250 .p2align 3
251 .L24:
252 xorl %eax, %eax
254 .size pthread_mutex_init, .-pthread_mutex_init
255 .p2align 4,,15
256 .globl pthread_mutex_lock
257 .type pthread_mutex_lock, @function
258 pthread_mutex_lock:
259 movl __libc_pthread_functions_init(%rip), %eax
260 testl %eax, %eax
261 je .L26
262 movq 88+__libc_pthread_functions(%rip), %rax
263 #APP
264 # 117 "forward.c" 1
265 ror $2*8+1, %rax
266 xor %fs:48, %rax
267 # 0 "" 2
268 #NO_APP
269 jmp *%rax
270 .p2align 4,,10
271 .p2align 3
272 .L26:
273 xorl %eax, %eax
275 .size pthread_mutex_lock, .-pthread_mutex_lock
276 .p2align 4,,15
277 .globl pthread_mutex_unlock
278 .type pthread_mutex_unlock, @function
279 pthread_mutex_unlock:
280 movl __libc_pthread_functions_init(%rip), %eax
281 testl %eax, %eax
282 je .L28
283 movq 96+__libc_pthread_functions(%rip), %rax
284 #APP
285 # 119 "forward.c" 1
286 ror $2*8+1, %rax
287 xor %fs:48, %rax
288 # 0 "" 2
289 #NO_APP
290 jmp *%rax
291 .p2align 4,,10
292 .p2align 3
293 .L28:
294 xorl %eax, %eax
296 .size pthread_mutex_unlock, .-pthread_mutex_unlock
297 .p2align 4,,15
298 .weak __pthread_setcancelstate
299 .type __pthread_setcancelstate, @function
300 __pthread_setcancelstate:
301 movl __libc_pthread_functions_init(%rip), %eax
302 testl %eax, %eax
303 je .L30
304 movq 104+__libc_pthread_functions(%rip), %rax
305 #APP
306 # 121 "forward.c" 1
307 ror $2*8+1, %rax
308 xor %fs:48, %rax
309 # 0 "" 2
310 #NO_APP
311 jmp *%rax
312 .p2align 4,,10
313 .p2align 3
314 .L30:
315 xorl %eax, %eax
317 .size __pthread_setcancelstate, .-__pthread_setcancelstate
318 .globl pthread_setcancelstate
319 .set pthread_setcancelstate,__pthread_setcancelstate
320 .p2align 4,,15
321 .globl pthread_setcanceltype
322 .type pthread_setcanceltype, @function
323 pthread_setcanceltype:
324 movl __libc_pthread_functions_init(%rip), %eax
325 testl %eax, %eax
326 je .L32
327 movq 112+__libc_pthread_functions(%rip), %rax
328 #APP
329 # 125 "forward.c" 1
330 ror $2*8+1, %rax
331 xor %fs:48, %rax
332 # 0 "" 2
333 #NO_APP
334 jmp *%rax
335 .p2align 4,,10
336 .p2align 3
337 .L32:
338 xorl %eax, %eax
340 .size pthread_setcanceltype, .-pthread_setcanceltype
341 .section .text.compat
342 .p2align 4,,15
343 .globl __pthread_unwind
344 .hidden __pthread_unwind
345 .type __pthread_unwind, @function
346 __pthread_unwind:
347 subq $8, %rsp
348 movl __libc_pthread_functions_init(%rip), %eax
349 movq %rdi, %rdx
350 testl %eax, %eax
351 jne .L35
352 movl $39, %eax
353 #APP
354 # 28 "../sysdeps/unix/sysv/linux/safe-fatal.h" 1
355 syscall
357 # 0 "" 2
358 #NO_APP
359 movl $9, %esi
360 movl %eax, %edi
361 movl $62, %eax
362 #APP
363 # 29 "../sysdeps/unix/sysv/linux/safe-fatal.h" 1
364 syscall
366 # 0 "" 2
367 #NO_APP
368 .L35:
369 movq 208+__libc_pthread_functions(%rip), %rax
370 movq %rdx, %rdi
371 #APP
372 # 127 "forward.c" 1
373 ror $2*8+1, %rax
374 xor %fs:48, %rax
375 # 0 "" 2
376 #NO_APP
377 call *%rax
378 .size __pthread_unwind, .-__pthread_unwind
379 .hidden __libc_pthread_functions_init
380 .comm __libc_pthread_functions_init,4,4
381 .hidden __libc_pthread_functions
382 .comm __libc_pthread_functions,240,32