Skip to content

Instantly share code, notes, and snippets.

@chris-se
Created February 6, 2016 23:14
Show Gist options
  • Save chris-se/7fca4c24d2609e650b58 to your computer and use it in GitHub Desktop.
Save chris-se/7fca4c24d2609e650b58 to your computer and use it in GitHub Desktop.
Index: libpthread/pthread_internal.c
===================================================================
RCS file: /cvs/dietlibc/libpthread/pthread_internal.c,v
retrieving revision 1.24
diff -u -p -r1.24 pthread_internal.c
--- libpthread/pthread_internal.c 21 Feb 2014 10:03:29 -0000 1.24
+++ libpthread/pthread_internal.c 6 Feb 2016 23:13:53 -0000
@@ -21,7 +21,7 @@
#include <stdio.h>
#endif
-#ifdef WANT_TLS
+#if defined(WANT_TLS) || defined(WANT_SSP)
#include <sys/tls.h>
#endif
@@ -385,6 +385,8 @@ static void* __managed_start(void*arg) {
memcpy(me,__tdataptr,__tdatasize);
memset(((char*)me)+__tdatasize,0,__tmemsize-__tdatasize);
me=(tcbhead_t*)(((char*)me) + __tmemsize);
+#else
+ );
#endif
__setup_tls(me);
me->multiple_threads=1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment