From owner-freebsd-hackers Tue Feb 8 22: 6:42 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from kweetal.tue.nl (kweetal.tue.nl [131.155.2.7]) by builder.freebsd.org (Postfix) with ESMTP id B68134535 for ; Tue, 8 Feb 2000 16:35:09 -0800 (PST) Received: from hermes.tue.nl [131.155.2.46] by kweetal.tue.nl (8.9.3) id BAA01597 (ESMTP); Wed, 9 Feb 2000 01:34:34 +0100 (MET) Received: from deathstar (n191.dial.tue.nl [131.155.209.190]) by hermes.tue.nl (Postfix) with ESMTP id 59C792E803; Wed, 9 Feb 2000 01:34:28 +0100 (CET) From: "Marco van de Voort" To: John Polstra Date: Wed, 9 Feb 2000 01:32:07 +0100 Subject: Re: how to compile without libc (so not static) Cc: hackers@freebsd.org In-reply-to: <200002081858.KAA73853@vashon.polstra.com> References: <20000207191543.E365F2E802@hermes.tue.nl> X-mailer: Pegasus Mail for Win32 (v3.12b) Message-Id: <20000209003428.59C792E803@hermes.tue.nl> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message