Shared library annoyance with gcc-3_0-branch

Richard Henderson rth@redhat.com
Tue Feb 20 01:46:00 GMT 2001


On Mon, Feb 19, 2001 at 06:25:37PM -0800, Linus Torvalds wrote:
> Is there any real reason why libgcc can't just be statically linked?

Yes.  There must be exactly one copy of the exception handling
routines in use within a program.

Current failure mode is that two c++ shared libraries both link
against a static libgcc, both include the eh routines, and then
are used in a situation in which symbols are not cross-resolved.
Being loaded via dlopen is the simplest of these situations, but
there are others.


r~



More information about the Gcc mailing list