2 #include "pthread_impl.h"
5 __attribute__((__visibility__("hidden")))
6 void *__tls_get_new(tls_mod_off_t *);
8 void *__tls_get_addr(tls_mod_off_t *v)
10 pthread_t self = __pthread_self();
11 if (v[0]<=(size_t)self->dtv[0])
12 return (char *)self->dtv[v[0]]+v[1]+DTP_OFFSET;
13 return __tls_get_new(v);
16 weak_alias(__tls_get_addr, __tls_get_new);