is main() provided by a library valid C ?

Daniel Jacobowitz drow@false.org
Fri May 13 14:02:00 GMT 2005


On Fri, May 13, 2005 at 09:47:01AM +0200, Peter S. Mazinger wrote:
> The circumstances:
> The weak definition of main() is moved from libc.so to crt1.o written in 
> asm as '.protected main'.

Why?

You certainly can't declare main as a protected symbol if it lives in a
library.  I don't see why you want it to be a protected symbol, either.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



More information about the Binutils mailing list