clarify the purpose of this project
[nyanglibc.git] / elf / tls_get_addr.shared.s
blobb96f35b31ad58416d78011f451aaad6b513452eb
1 .globl __tls_get_addr
2 .type __tls_get_addr,@function
3 .align 1<<4
4 __tls_get_addr:
5 mov %fs:8, %rdx
6 mov 4088 +_rtld_local(%rip), %rax
7 cmp %rax, (%rdx)
8 jne 1f
9 mov 0(%rdi), %rax
10 salq $4, %rax
11 movq (%rdx,%rax), %rax
12 cmp $-1, %rax
13 je 1f
14 add 8(%rdi), %rax
15 ret
17 pushq %rbp
18 mov %rsp, %rbp
19 and $-16, %rsp
20 call __tls_get_addr_slow
21 mov %rbp, %rsp
22 popq %rbp
23 ret
24 .size __tls_get_addr,.-__tls_get_addr