Subject: dlopen() and libgcc.a
To: None <tech-toolchain@netbsd.org>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: tech-toolchain
Date: 12/06/2000 18:43:55
If I'm loading certain objects made from C++ sources
into a C program (even if the latter is linked with c++):

Undefined symbol "__pure_virtual" (reloc type = 1, symnum = 475)

__pure_virtual (reference automatically generated by g++ for pure
virtual member functions, calls abort() at runtime) is implemented
in libgcc.a.
I could imagine similar problems showing up for plain C
objects too if some of the more exotic math support functions
are used, but I didn't try.

What's the right way to deal with this - perhaps link in
libgcc.a "whole-archive" into programs using dlopen(), or
provide a shared libgcc?

best regards
Matthias