This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Reserve static TLS for dynamically loaded initial-exec TLS only [BZ #25051]
- From: Florian Weimer <fweimer at redhat dot com>
- To: Szabolcs Nagy <Szabolcs dot Nagy at arm dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, nd <nd at arm dot com>
- Date: Tue, 07 Jan 2020 13:09:42 +0100
- Subject: Re: [PATCH] Reserve static TLS for dynamically loaded initial-exec TLS only [BZ #25051]
- References: <44eaccc2-f760-88c0-989a-e413e328b051@arm.com>
* Szabolcs Nagy:
> This patch reserves 128 bytes of the surplus TLS that is not used
> opportunistically. TLS_STATIC_SURPLUS is currently 1664, so this still
> allows 1536 bytes for opportunistic use. A new test is added to verify
> this ABI contract: dynamic loading of libraries with initial-exec TLS
> is supported up to 128 bytes in total on all targets. This should be
> enough for system libraries such as libgomp.
I'm not sure if it's enough for loading another libc.so.6 via dlmopen.
Have you tested this, by chance?
Thanks,
Florian