Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
all gcc versions - thread local storage broken #11
simple example, just compile a c file a variable declared like this:
Unclear at the moment if this problem is coming from inside gcc or is binutils related.
gcc should be using emutls - so shouldn't emit thread local storage references in the assembly (if I've understood correctly).
Example (crashing) simple C program with thread local variable here:
Example (crashing) simple C++ program with thread local variable here:
More complex use of thread local storage + threads here: