This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Static data in dynamically loaded C++ shared libs on linux
- To: mrs at windriver dot com
- Subject: Re: Static data in dynamically loaded C++ shared libs on linux
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Thu, 2 Dec 1999 06:48:50 +0100
- CC: koch at epc dot de, gcc-bugs at gcc dot gnu dot org
- References: <199912012255.OAA18370@kankakee.wrs.com>
> It is not a nonconformance with the ANSI standard for C++, but it is a
> bug. I'm not into this, well we know it is stupid and wrong, but it
> isn't a bug thing. Let's call it what it is, a bug.
Calling it a bug implies that it can and ought to be fixed everywhere
it occurs, without breaking anything else. I'm not so sure this is
possible.
> There are solutions that can be implemented to solve this bug. One of
> them is an atexit with two parameters.
Unfortunately, there is no such atexit routine, and we cannot provide
one, either - it must be provided by the C library, which we don't
provide.
> See HJ Lu's (or was it Drepper?) excellent previous posting.
If you are referring to an earlier patch in this area, well, this was
actually mine...