From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: law@cygnus.com Cc: egcs@cygnus.com Subject: Re: 1008 segfaults in genattr Date: Fri, 21 Nov 1997 21:09:00 -0000 Message-id: References: <1586.880174157@cygnus.com> X-SW-Source: 1997-11/msg00701.html > > 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)