Missing call to __main and/or __gccmain?
Richard Earnshaw
rearnsha@arm.com
Fri May 23 17:13:00 GMT 2003
> Guys:
>
>
> I noticed the other day that gcc-3.2.3 for arm doesn't call __gccmain
> or __main inside of main() anymore. I don't know when this change
> went into affect, but I think I recall seeing a 3.0 doing the call as
> expected.
>
> Anyone else see this? Why the change?
>
> I used to hook __main to handle initdata in ROM'ed applications.
> Guess I'll have to start providing my own _start functions instead...
>
__[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.
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
More information about the crossgcc
mailing list