From owner-freebsd-hackers Mon Feb 7 0:17:21 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhost.tue.nl (mailhost.tue.nl [131.155.2.5]) by builder.freebsd.org (Postfix) with ESMTP id D60243D37 for ; Mon, 7 Feb 2000 00:17:14 -0800 (PST) Received: from hermes.tue.nl [131.155.2.46] by mailhost.tue.nl (8.9.3) for id JAA22346 (ESMTP); Mon, 7 Feb 2000 09:17:54 +0100 (MET) Received: from deathstar (n195.dial.tue.nl [131.155.209.194]) by hermes.tue.nl (Postfix) with ESMTP id 9C14D2E803 for ; Mon, 7 Feb 2000 09:17:52 +0100 (CET) From: "Marco van de Voort" To: hackers@FreeBSD.ORG Date: Mon, 7 Feb 2000 09:15:26 +0100 Subject: Re: how to compile without libc (so not static) References: Your message of Fri, 04 Feb 2000 17:13:24 +0100. <20000204161324.B2DE396D7@toad.stack.nl> In-reply-to: <26143.949880575@monkeys.com> X-mailer: Pegasus Mail for Win32 (v3.12b) Message-Id: <20000207081752.9C14D2E803@hermes.tue.nl> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >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