This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: newlib library init requirements?


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.


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