clarify the purpose of this project
[nyanglibc.git] / elf / xstrdup.s
blobd1d1f17b0108f06e10d5616103b247a5bf151df2
1 .text
2 .p2align 4,,15
3 .globl xstrdup
4 .type xstrdup, @function
5 xstrdup:
6 pushq %rbx
7 movq %rdi, %rbx
8 call strlen@PLT
9 leaq 1(%rax), %rdi
10 call xmalloc@PLT
11 movq %rbx, %rsi
12 movq %rax, %rdi
13 popq %rbx
14 jmp strcpy@PLT
15 .size xstrdup, .-xstrdup