clarify the purpose of this project
[nyanglibc.git] / malloc / dynarray_at_failure.s
blobce7e5aeb628fcfdc5e19117d03a56fcdd4f9ab9a
1 .text
2 .section .rodata.str1.8,"aMS",@progbits,1
3 .align 8
4 .LC0:
5 .string "Fatal glibc error: array index %zu not less than array length %zu\n"
6 .text
7 .p2align 4,,15
8 .globl __libc_dynarray_at_failure
9 .hidden __libc_dynarray_at_failure
10 .type __libc_dynarray_at_failure, @function
11 __libc_dynarray_at_failure:
12 pushq %rbx
13 leaq .LC0(%rip), %rdx
14 movq %rdi, %r8
15 movq %rsi, %rcx
16 xorl %eax, %eax
17 movl $200, %esi
18 subq $208, %rsp
19 movq %rsp, %rbx
20 movq %rbx, %rdi
21 call __snprintf
22 movq %rbx, %rdi
23 call __libc_fatal
24 .size __libc_dynarray_at_failure, .-__libc_dynarray_at_failure
25 .hidden __libc_fatal
26 .hidden __snprintf