Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Feb 2000 01:32:07 +0100
From:      "Marco van de Voort" <marcov@stack.nl>
To:        John Polstra <jdp@polstra.com>
Cc:        hackers@freebsd.org
Subject:   Re: how to compile without libc (so not static)
Message-ID:  <20000209003428.59C792E803@hermes.tue.nl>
In-Reply-To: <200002081858.KAA73853@vashon.polstra.com>
References:  <20000207191543.E365F2E802@hermes.tue.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
> > Still doesn't work though with the newer one :-)
> > (try some arithmetic to see if that works.
> 
> What do you mean, "Still doesn't work"?  

I can't compile a working file.

>If you are using the
> /usr/bin/cc that comes with FreeBSD, and if -nostdlib causes the
> crt* files and libc to be omitted from the link, then it works.

I'm not necessarily saying that it is a bug in cc, but in the gcc-csu (and maybe libc FreeBSD 
dependant parts) system as a whole

> Making it do something useful is _your_ problem, not ours. :-) 

I haven't found a solution yet. I don't know what the ctor* and dtor* routines do,
and if I can omit them.

>We don't recommend or support linking that way.

Who is we? And why do you think so? 

And who knows something about the internals of the CSU files? What can I
rip out, what not? If I rip out most stuff it doesn't seem to work. 

The problem is that I can't find any example about how to do it. 

Marco van de Voort (MarcoV@Stack.nl)
<http://www.stack.nl/~marcov/xtdlib.htm>;


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?20000209003428.59C792E803>