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 Thu, May 19, 2005 at 10:40:07PM +0200, Joakim Tjernlund wrote:
> If my memory serves me right, to build libc w/ -z defs, main needs to be declared
> weak in libc.

Incorrect.  Libc doesn't need to mention main at all.  Please look at
glibc's CRT files.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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