matthieu castet wrote:
> Carmelo Amoroso wrote:
>> Rob Landley wrote:
>>> Does NPTL depend on TLS?
>>>
>> No, NPTL needs some support from kernel (futexes) and works with 2.6 
>> kernel
>> and later (I don't remember exactly since from version)
>>
>> TLS support is all implemented by the ld.so and needs gcc/ld support.
>>
> So NTPL provide its own TLS stuff and doesn't rely on gcc/ld support ?
> Or TLS support is needed before NPTL integration ?
> 
> Matthieu
> 
TLS needs support from ld/gcc at compile time. gcc needs to understand
the new keyword __thread used fro declaring a TLS variable, and the ld
must be able to generate proper ELF section (.tbss, .tdata) as well as
TLS relocations. At runtime, the dynamic linker must do some work
for setting TLS block and other data structure and must be able to
properly handle TLS relocations.

NPTL is the pthread library implementation. Anyway there is a link with TLS,
because when the TLS support is enabled, the pthread library must provide a 
function
that will be called at each thread creation for allocating and initializing
some TLS related data structures (basically what the dynamic linker does for the
initial thread, the main process).

Hope to have been clearer.

Carmelo
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to