This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Missing call to __main and/or __gccmain?


> Richard:
> 
> 
> > __[gcc]main was for calling C++ constructors.  With ELF we can use the 
> > .init_vec section for the list of vectors to call and expect the crt0 
> > module to "do the right thing".  So there's no need to call __main any 
> > more.
> 
> Ah, so the comment in sys/arm/crt0.S *is* accurate!  :^)
> 
> So where is _init defined?  A fair amount of grepping in gcc and
> newlib hasn't uncovered it for me...
> 

It's in gcc/config/arm/crti.asm

R.


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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