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]

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


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?

The reason I'm asking is that this arrangement means that the calls go
from one end of the app to the other, which isn't ideal for targets
having limited branch range.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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