Bug#101901: g++-3.0 and --use-cxa-atexit
On Sat, 23 Jun 2001, Matthias Klose wrote:
> Chris, any support in ld needed?
I believe so. I'm working on a new package, but am having problems with
objcopy on at least one platform (segfault). I'll see what I can do about
putting together a new release this week.
C
>
> laurent bonnaud writes:
> > Package: g++-3.0
> > Version: 1:3.0-1
> > Severity: normal
> >
> >
> > Hi,
> >
> > according to http://gcc.gnu.org/bugs.html#known, it would seem to be a good
> > idea to compile g++-3.0 with the --use-cxa-atexit switch:
> >
> > >Global destructors are not run in the correct order
> >
> > >Global destructors should be run in the reverse order of their constructors
> > >completing. In most cases this is the same as the reverse order of constructors
> > >starting, but sometimes it is different, and that is important. You need to
> > >compile and link your programs with --use-cxa-atexit. We have not turned this
> > >switch on by default, as it requires a cxa aware runtime library (libc, glibc,
> > >or equivalent).
> >
> > A more detailed explanation is given in:
> >
> > http://gcc.gnu.org/ml/gcc-patches/1999-12n/msg00664.html
> >
> >
> > -- System Information
> > Debian Release: testing/unstable
> > Architecture: i386
> > Kernel: Linux irancy 2.4.4-686 #1 Sun Apr 29 12:22:40 EST 2001 i686
> > Locale: LANG=C, LC_CTYPE=C
> >
> > Versions of packages g++-3.0 depends on:
> > ii gcc-3.0 1:3.0-1 The GNU C compiler.
> > ii gcc-3.0-base 1:3.0-1 The GNU compiler collection (base
> > ii libc6 2.2.3-6 GNU C Library: Shared libraries an
> > ii libstdc++3-dev 1:3.0-1 The GNU stdc++ library version 3 (
> >
> >
> >
> > --
> > To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
Reply to: