This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: CFT: Re: libgcc: why emutls.c in LIB2ADDEH instead of LIB2ADD?
- From: Richard Henderson <rth at redhat dot com>
- To: Iain Sandoe <developer at sandoe-acoustics dot co dot uk>
- Cc: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>, Paolo Bonzini <bonzini at gnu dot org>, Jakub Jelinek <jakub at redhat dot com>, Dave Korn <dave dot korn dot cygwin at googlemail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Mike Stump <mrs at gcc dot gnu dot org>
- Date: Mon, 21 Nov 2011 09:58:56 -0800
- Subject: Re: CFT: Re: libgcc: why emutls.c in LIB2ADDEH instead of LIB2ADD?
- References: <201111210934.pAL9YYB2018969@ignucius.se.axis.com> <F45676EE-FAAF-4ED4-829A-0B9DFA3AEA4F@sandoe-acoustics.co.uk>
On 11/21/2011 02:04 AM, Iain Sandoe wrote:
> The reason it was in libgcc_eh (AFAIK, the original implementation
> pre-dates my GCC days) - is because there can only be one copy of the
> static emutls locking entities in a given exe. I guess it was felt
> analogous to the "only one unwinder" rule.
Yes, that was it. That puts the stuff in libgcc_s.so, but not libgcc.a.
r~