newlib library init requirements?

Jonathan S. Shapiro shap@eros-os.com
Mon Mar 12 13:00:00 GMT 2007


So just to confirm, there is no entry point comparable in function to
glibc's __glibc_start_main() entry point?

For ELF platforms using .init and .fini sections, what is recommended
way to get the _fini() procedure called on exit? Register it from crt0
with at_exit()?

Thanks.

shap

On Thu, 2007-03-08 at 19:24 -0500, Jeff Johnston wrote:
> Jonathan S. Shapiro wrote:
> > I am bringing up a new crt1. Does newlib have an initialization
> > procedure that must be called from crt1 before main() is called?
> >   
> Nothing specific from newlib itself other than what you'd find in crt0.  
> Any C++ initialization should be defined by the ABI for your
> platform.
> 
> -- Jeff J.



More information about the Newlib mailing list