This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Don't use INTDEF/INTUSE in unwind-dw2-fde.c (bug 14132)
- From: Rich Felker <dalias at libc dot org>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: Carlos O'Donell <carlos at redhat dot com>, libc-alpha at sourceware dot org
- Date: Tue, 28 Oct 2014 16:00:28 -0400
- Subject: Re: Don't use INTDEF/INTUSE in unwind-dw2-fde.c (bug 14132)
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1410222356390 dot 5108 at digraph dot polyomino dot org dot uk> <544FB8B0 dot 8080101 at redhat dot com> <Pine dot LNX dot 4 dot 64 dot 1410281654080 dot 23740 at digraph dot polyomino dot org dot uk>
On Tue, Oct 28, 2014 at 05:11:37PM +0000, Joseph S. Myers wrote:
> It might be possible to eliminate those copies by making libc on affected
> architectures dlopen shared libgcc at startup and use the functions from
> there in the same way as done for thread cancellation, but that might not
> be desirable given most binaries wouldn't need it (really you'd want it to
> be dlopened only for binaries referencing those symbols; lazy opening is
> problematic for error reporting).
Doing that would be really backwards. What's needed is really the
opposite -- getting rid of the dlopen of libgcc entirely. Right now
pthread_cancel aborts the whole program if loading libgcc fails, and
loading can fail for all sorts of spurious reasons.
Rich