projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix dlsym of thread-local symbols on archs with DTP_OFFSET!=0
[musl]
/
src
/
thread
/
__tls_get_addr.c
1
#include <stddef.h>
2
#include "pthread_impl.h"
3
4
void *__tls_get_addr(tls_mod_off_t *v)
5
{
6
pthread_t self = __pthread_self();
7
if (v[0] <= self->dtv[0])
8
return (void *)(self->dtv[v[0]] + v[1]);
9
return __tls_get_new(v);
10
}
11
12
weak_alias(__tls_get_addr, __tls_get_new);