This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: crt{begin,end}.o and __do_global_{c,d}tors_aux
- From: Richard Henderson <rth at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 7 Jun 2003 15:33:58 -0700
- Subject: Re: crt{begin,end}.o and __do_global_{c,d}tors_aux
- References: <20030607042256.GA2102@bubble.sa.bigpond.net.au>
On Sat, Jun 07, 2003 at 01:52:56PM +0930, Alan Modra wrote:
> Can someone tell me why on ELF system, crtbegin.o defines
> __do_global_dtors_aux and crtend.o defines __do_global_ctors_aux, and
> not the other way around? Is it just so that the calls from _fini and
> _init respectively are to static functions?
Without STV_HIDDEN, this is required to get proper semantics.
We don't want __CTOR_END__ always being resolved to the main
application.
r~