where is gccmain

vishu27@cox.net vishu27@cox.net
Wed Nov 5 16:35:00 GMT 2003


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? 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. The reason I would like to know is I am trying to get C++ programs to run on an OS less system. 

    I would really appreciate you answers. 

Thanks
Vish


------
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