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


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: is main() provided by a library valid C ?


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


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