[PATCH] elf: Change TLS static surplus default back to 1664

Florian Weimer fweimer@redhat.com
Fri Jul 17 11:39:08 GMT 2020


* Szabolcs Nagy:

>> diff --git a/elf/dl-tls.c b/elf/dl-tls.c
>> index 9a17427047..462b0f46c1 100644
>> --- a/elf/dl-tls.c
>> +++ b/elf/dl-tls.c
>> @@ -54,13 +54,35 @@
>>     Audit modules use their own namespaces, they are not included in rtld.nns,
>>     but come on top when computing the number of namespaces.  */
>>  
>> -/* Size of initial-exec TLS in libc.so.  */
>> -#define LIBC_IE_TLS 160
>> +/* Size of initial-exec TLS in libc.so.  May be smaller than that on
>> +   some architectures.  */
>> +#define LIBC_IE_TLS 144
>
> to me it's not clear what is smaller than what.
> on some architectures libc.so has > 144 bytes
> ie tls?

I meant that the actual libc.so usage may be lower than LIBC_IE_TLS, due
to pointer size differences and link editor capabilities.  Some targets
seem to be more successful at eliminating padding from the static TLS
area.

I will send a new patch.

Thanks,
Florian



More information about the Libc-alpha mailing list