This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Use IE model for static variables in glibc
- From: Ramana Radhakrishnan <ramana dot gcc at googlemail dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: Roland McGrath <roland at hack dot frob dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Sat, 11 Jul 2015 01:37:26 +0100
- Subject: Re: [PATCH] Use IE model for static variables in glibc
- Authentication-results: sourceware.org; auth=none
- References: <20150709180544 dot GA8522 at spoyarek dot pnq dot redhat dot com> <20150709204033 dot 262B02C39DC at topped-with-meat dot com> <20150710051823 dot GH2816 at spoyarek dot pnq dot redhat dot com>
- Reply-to: ramrad01 at arm dot com
On Fri, Jul 10, 2015 at 6:18 AM, Siddhesh Poyarekar <siddhesh@redhat.com> wrote:
> On Thu, Jul 09, 2015 at 01:40:33PM -0700, Roland McGrath wrote:
<snip>
>
> I also have to look at the impact on ARM since it uses
> -ftls-model=gnu2 to get tls descriptors. I reckon it would actually
> be an improvement, but I'd like to make sure that it is. There's also
> a good case IMO to somehow compute static TLS usage within libc.so and
> libpthread.so and add that to the surplus. That way the surplus would
> be reserved specifically for user DSOs that absolutely want to use IE
> and libc will never encroach that. Again a good project for 2.23.
FYI, while -ftls-model=gnu2 isn't default on AArch32 - on AArch64 tls
descriptors are the default, so you could test it there if you had
access to such hardware.
Ramana
>
> Siddhesh