summaryrefslogblamecommitdiff
path: root/src/ldso/x86_64/tlsdesc.s
blob: 0151d15c928a8792db44091d23f55d7367a97eea (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                        
                        




                                

                     
                         
                         






                                 

                              
                


                      
.text
.global __tlsdesc_static
.hidden __tlsdesc_static
.type __tlsdesc_static,@function
__tlsdesc_static:
	mov 8(%rax),%rax
	ret

.hidden __tls_get_new

.global __tlsdesc_dynamic
.hidden __tlsdesc_dynamic
.type __tlsdesc_dynamic,@function
__tlsdesc_dynamic:
	mov 8(%rax),%rax
	push %rdx
	mov %fs:8,%rdx
	push %rcx
	mov (%rax),%rcx
	mov 8(%rax),%rax
	add (%rdx,%rcx,8),%rax
	pop %rcx
	sub %fs:0,%rax
	pop %rdx
	ret