where is gccmain
vishu27@cox.net
vishu27@cox.net
Wed Nov 5 18:53:00 GMT 2003
So if I have gccmain, I would not have to have init and fini in my startup crt0.S or define those symbols else where right?
Thanks
Vish
>
> From: Richard Earnshaw <rearnsha@arm.com>
> Date: 2003/11/05 Wed PM 12:38:58 EST
> To: vishu27@cox.net
> CC: crossgcc@sources.redhat.com, Richard.Earnshaw@arm.com
> Subject: Re: where is gccmain
>
> > Hi,
> > When I assemble a simple C program, there is a call to __gccmain. Does any one know where this is located. Is it somewhere in libgcc.a?
>
> Yes.
>
> >Also does this __gccmain call the _init function in order to call
> constructor of static objects and also registers _fini with __atexit to
> call their destructors or does this calling of _init and registering of
> _fini has to be done in crt0.S as it is done in the default crt0.S build
> for newlib. I am using a gcc toolchain for xscale.
>
> Normally, if your compiler is using __gccmain it won't be using init and
> fini (and vice-versa). The two different ways of achieving the same
> effect.
>
> 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
>
>
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list