__cxa_atexit question
Mark Mitchell
mark@codesourcery.com
Sun May 21 23:19:00 GMT 2006
Ulrich Drepper wrote:
> I reiterate: there is no way to implement this correctly in the presence
> of DSOs without direct support in the libc. Every denying this is from
> the special interest group who only care about static linking.
I'm not debating the technical content of your statements regarding
DSOs, but it's misleading to call static linkage a special interest
group. It's true that a minority of GNU/Linux programs are statically
linked, but there are still lots of systems targeted by GCC on which
many programs are statically linked.
My primary concern is that we leave the door open to adding
functionality to libsupc++ to provide correct C++ behavior on
non-GNU/Linux systems.
As a secondary issue, on a system like HP-UX it should be possible to
get correct C++ semantics using G++, even if that means being careful
about the ways in which you shared libraries written in C. Otherwise,
we are providing a reason for people to favor the proprietary C++
compiler over the GNU C++ compiler.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Libstdc++
mailing list