clarify the purpose of this project
[nyanglibc.git] / signal / sysv_signal.shared.s
blob56838dc57499253020a458a50ee5f6113871f4d8
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .type __sysv_signal.part.1, @function
9 __sysv_signal.part.1:
10 subq $328, %rsp
11 leaq 160(%rsp), %rdx
12 movq %rsi, (%rsp)
13 movq %rsp, %rsi
14 movq $0, 8(%rsp)
15 movl $-536870912, 136(%rsp)
16 call __GI___sigaction
17 testl %eax, %eax
18 movq $-1, %rdx
19 js .L1
20 movq 160(%rsp), %rdx
21 .L1:
22 movq %rdx, %rax
23 addq $328, %rsp
24 ret
25 .size __sysv_signal.part.1, .-__sysv_signal.part.1
26 .p2align 4,,15
27 .globl __sysv_signal
28 .type __sysv_signal, @function
29 __sysv_signal:
30 leal -1(%rdi), %eax
31 cmpl $63, %eax
32 ja .L11
33 cmpq $-1, %rsi
34 jne .L13
35 .L11:
36 movq __libc_errno@gottpoff(%rip), %rax
37 movl $22, %fs:(%rax)
38 movq $-1, %rax
39 ret
40 .p2align 4,,10
41 .p2align 3
42 .L13:
43 jmp __sysv_signal.part.1
44 .size __sysv_signal, .-__sysv_signal
45 .weak sysv_signal
46 .set sysv_signal,__sysv_signal