github.com/afumu/libc@v0.0.6/musl/src/ldso/i386/tlsdesc.s (about) 1 .text 2 .global __tlsdesc_static 3 .hidden __tlsdesc_static 4 .type __tlsdesc_static,@function 5 __tlsdesc_static: 6 mov 4(%eax),%eax 7 ret 8 9 .global __tlsdesc_dynamic 10 .hidden __tlsdesc_dynamic 11 .type __tlsdesc_dynamic,@function 12 __tlsdesc_dynamic: 13 mov 4(%eax),%eax 14 push %edx 15 mov %gs:4,%edx 16 push %ecx 17 mov (%eax),%ecx 18 mov 4(%eax),%eax 19 add (%edx,%ecx,4),%eax 20 pop %ecx 21 sub %gs:0,%eax 22 pop %edx 23 ret