This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]