This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Shared library annoyance with gcc-3_0-branch


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]