projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
copy the dtv pointer to the end of the pthread struct for TLS_ABOVE_TP archs
[musl]
/
src
/
env
/
__init_tls.c
diff --git
a/src/env/__init_tls.c
b/src/env/__init_tls.c
index
b0dad42
..
e651c7a
100644
(file)
--- a/
src/env/__init_tls.c
+++ b/
src/env/__init_tls.c
@@
-54,7
+54,7
@@
void *__copy_tls(unsigned char *mem)
td = (pthread_t)mem;
mem -= T.size;
#endif
- td->dtv = dtv;
+ td->dtv =
td->dtv_copy =
dtv;
dtv[1] = mem;
memcpy(mem, T.image, T.len);
return td;