Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Feb 2000 09:15:26 +0100
From:      "Marco van de Voort" <marcov@stack.nl>
To:        hackers@FreeBSD.ORG
Subject:   Re: how to compile without libc (so not static) 
Message-ID:  <20000207081752.9C14D2E803@hermes.tue.nl>
In-Reply-To: <26143.949880575@monkeys.com>
References:  Your message of Fri, 04 Feb 2000 17:13:24 %2B0100.             <20000204161324.B2DE396D7@toad.stack.nl> 

next in thread | previous in thread | raw e-mail | index | archive | help
> >grep exit *.o 
> >
> >in /usr/lib doesn't find me that label.
> >
> >What am I missing? 
> 
> Try this instead:
> 
> 	nm /usr/lib/libc.a | grep exit

I'm aware of that! That is libc which I'm trying to avoid here!
(see man gcc, search for -nostdlib)

I was referering to excuting gcc with -nostdlib with a simple c file and 
startup code(search for a csu directory in /usr/src)

So gcc should support NOT linking to libc. So either 
-  the (ELF) initcode  (crt1.x) is not implemented well
-  the gcc (at least the FreeBSD version if it is modified) is buggy, and doesn't
	select e.g. a correct crt1.o without the call to exit/atexit, or with other 
	patched code. (which is unlikely since I can't find any other files).
	
which was the point. I was trying to make.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000207081752.9C14D2E803>