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]

Purpose of attribute_tls_model_ie


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


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