Re: x86 get TLS method

2017-09-05 Thread Sebastian Huber
On 28/08/17 17:26, Joel Sherrill wrote: My question is what's the generic way to get the TLS area for a thread? Is the ARM method in C specific to the ARM or generic? See https://www.akkadia.org/drepper/tls.pdf there are some variants. -- Sebastian Huber, embedded brains GmbH Address : Dor

x86 get TLS method

2017-08-28 Thread Joel Sherrill
Hi I am working on a paravirtualized target that requires the code to be compiled with -fPIC. This changes the TLS method from %gs to calling a subroutine. My question is what's the generic way to get the TLS area for a thread? Is the ARM method in C specific to the ARM or generic? Thanks. --jo