crt{begin,end}.o and __do_global_{c,d}tors_aux
Alan Modra
amodra@bigpond.net.au
Sat Jun 7 04:47:00 GMT 2003
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
More information about the Gcc
mailing list