This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Purpose of attribute_tls_model_ie
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 16 Oct 2015 12:43:31 +0200
- Subject: Purpose of attribute_tls_model_ie
- Authentication-results: sourceware.org; auth=none
Why are some thread-local variables marked with attribute_tls_model_ie?
As far as I can tell, the default for PIC is set by
-ftls-model=initial-exec, and for non-PIC, it's the compiler default.
The latter is more efficient (no GOT indirection), but
attribute_tls_model_ie overrides this.
If anyone can tell me the reason, I'll add a comment to the definition
of the attribute_tls_model_ie macro.
Thanks,
Florian