Choosing the right TLS access model

Ludovic Courtès ludo@gnu.org
Fri Aug 3 07:42:00 GMT 2007


Hi,

Ian Lance Taylor <iant@google.com> writes:

> ludo@gnu.org (Ludovic Courtès) writes:

>> Likewise, Section 2.1 of [1] reads:
>> 
>>   Under certain circumstances, [the Initial Exec model] may be used in
>>   dynamic libraries as well, but it may come at the cost of being unable
>>   to dlopen such libraries.
>> 
>> This gives the impression that shared libraries that are not meant to be
>> dlopened can be compiled with `-ftls-model=initial-exec'.  Is this true?
>
> I believe that is true.

Hmm, do you know of libraries compiled this way?

Thanks,
Ludovic.



More information about the Gcc-help mailing list