This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Purpose of attribute_tls_model_ie
- From: Florian Weimer <fweimer at redhat dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 16 Oct 2015 20:53:52 +0200
- Subject: Re: Purpose of attribute_tls_model_ie
- Authentication-results: sourceware.org; auth=none
- References: <5620D4D3 dot 5060109 at redhat dot com> <alpine dot DEB dot 2 dot 10 dot 1510161329250 dot 18339 at digraph dot polyomino dot org dot uk> <562102FC dot 6050907 at redhat dot com> <alpine dot DEB dot 2 dot 10 dot 1510161516250 dot 26375 at digraph dot polyomino dot org dot uk>
On 10/16/2015 05:22 PM, Joseph Myers wrote:
>> But this would not apply to the arena pointer in malloc/arena.c, right?
>> (It's a static TLS variable, after all.) So we could drop it there and
>> get better code for statically linked glibc.
>
> Indeed. If it's being built as part of libc then the command-line option
> should suffice. The attribute should help for cases such as the
> GLIBC_PRIVATE TLS errno, however (subject to fixing the attribute to use
> local-exec in static libraries (but not *_nonshared)).
Good. After my cleanup patches which switch to an explicit __thread, we
can change each instance easily.
Florian