This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 1008 segfaults in genattr
- To: law at cygnus dot com
- Subject: Re: 1008 segfaults in genattr
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 21 Nov 1997 21:09:39 -0800 (PST)
- Cc: egcs at cygnus dot com
>
> In message <m0xYd7u-0004ecC@ocean.lucon.org>you write:
> > __do_global_dtors_aux is called via the .fini section. Unless
> > _fini (), the .fini section, is called twice, __do_global_dtors_aux
> > should not be called twice.
> Accoding to the comments before do_global_dtors_aux it can be called
> more than once:
>
> On some systems, this routine is run more than once from the .fini,
> when exit is called recursively, so we arrange to remember where in
> the list we left off processing, and we resume at that point,
> should we be re-invoked. */
>
The question is how exit is called recursively for a simple
"Hello World!" program.
--
H.J. Lu (hjl@gnu.ai.mit.edu)