This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: __cxa_atexit question
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: Steve Ellcey <sje at cup dot hp dot com>, libstdc++ at gcc dot gnu dot org
- Date: Sun, 21 May 2006 16:18:52 -0700
- Subject: Re: __cxa_atexit question
- References: <200605181834.LAA23788@hpsje.cup.hp.com> <446F9FF5.6030109@redhat.com>
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