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] |
On 1/12/2017 11:25 AM, Jakub Jelinek wrote:
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
Resurrecting this thread. That document covers a small subset of the targets supported by GCC. We have now implemented TLS on most of the ones in the document. But how (and if) it is implemented on the at least dozen other architectures GCC and RTEMS support is a mystery. We would like to have the option of just setting an option in the GCC backend where it generates calls to a known name subroutine exactly the same on all targets that set the option. This would make it much simpler for us to support across all architectures. The ARM already has a mode where it generates subroutine calls to get the TLS. Is there a way to do this?
Jakub
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |