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