This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Questions related to creation of libgcov.so
- From: Alexander Monakov <amonakov at ispras dot ru>
- To: Martin Liška <mliska at suse dot cz>
- Cc: GCC Development <gcc at gcc dot gnu dot org>, Nathan Sidwell <nathan at acm dot org>, Jan Hubicka <hubicka at ucw dot cz>, Jakub Jelinek <jakub at redhat dot com>
- Date: Mon, 6 Aug 2018 14:02:17 +0300 (MSK)
- Subject: Re: Questions related to creation of libgcov.so
- References: <2bf09eba-a704-8d10-0dd7-9900e275656a@suse.cz>
On Fri, 3 Aug 2018, Martin Liška wrote:
> I'm attaching current patch, so any comment is welcomed.
Please consider passing -Wl,-z,now when linking the new shared library:
gcov has a few thread-local variables that may be accessed in async-signal
context, and Glibc has bugs related to lazy binding and/or allocation
(not sure which exactly) of TLS symbols.
Lazy binding doesn't buy anything for gcov, and that would be a cheap way
to avoid a regression.
On the other hand, it's not gcov's responsibility to work around
long-standing bugs in Glibc, so I don't insist.
Alexander