On 11/30/2011 9:36 AM, Jacob Carlborg wrote: > I'm pretty sure the compiler needs to generate different code for TLS when the > variable to access is in a dynamic library. That is correct, and you'll see the difference when you use -fPIC.