This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: Purpose of attribute_tls_model_ie


On Fri, 16 Oct 2015, Florian Weimer wrote:

> Why are some thread-local variables marked with attribute_tls_model_ie?

Maybe to indicate variables located in initial modules that are accessed 
from other modules (i.e. for use when those other modules are being built, 
without -ftls-model=initial-exec)?

> 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.

I suppose there's a case for static libraries being built for local-exec.

-- 
Joseph S. Myers
joseph@codesourcery.com


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