beginnings of full TLS support in shared libraries
this code will not work yet because the necessary relocations are not
supported, and cannot be supported without some internal changes to
how relocation processing works (coming soon).
diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h
index 56b92b2..f7facba 100644
--- a/src/internal/pthread_impl.h
+++ b/src/internal/pthread_impl.h
@@ -22,7 +22,7 @@
struct pthread {
struct pthread *self;
- void *dtv, *unused1, *unused2;
+ void **dtv, *unused1, *unused2;
uintptr_t sysinfo;
uintptr_t canary;
pid_t tid, pid;