This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: TLS run-time requirements on x86, etc.


On Thu, Jan 12, 2017 at 11:22:58AM -0600, Joel Sherrill wrote:
> I am looking at the RTEMS x86 TLS support. When -fPIC is
> specified, gcc generates calls to ___tls_get_addr(). But
> when it is not specified, there are no external calls.
> To make sure we are doing the right thing, I have a
> few questions:
> 
> + What is expected for "get TLS" when __tls_get_addr()
> is not called?
> 
> + Can we force all RTEMS i386 gcc configurations to make the
> function call to __tls_get_addr()? We have an implementation
> of it for ARM so it would be the same. So this would
> be a simple solution for us.

Please read:
https://www.akkadia.org/drepper/tls.pdf

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]