crt{begin,end}.o and __do_global_{c,d}tors_aux

Richard Henderson rth@redhat.com
Sat Jun 7 23:01:00 GMT 2003


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~



More information about the Gcc mailing list