newlib library init requirements?

Jeff Johnston jjohnstn@redhat.com
Mon Mar 12 22:55:00 GMT 2007


Yes, to confirm, there is nothing inside newlib itself.  This is all 
gcc/libgloss mechanism territory.  See the mn10300 libgloss for an 
example of crt1 and crt0 calling it.

-- Jeff J.

Jonathan S. Shapiro wrote:
> 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