From owner-freebsd-hackers Fri Mar 10 16: 0:27 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from kweetal.tue.nl (kweetal.tue.nl [131.155.2.7]) by hub.freebsd.org (Postfix) with ESMTP id 441D737B824 for ; Fri, 10 Mar 2000 16:00:18 -0800 (PST) (envelope-from marcov@toad.stack.nl) Received: from hermes.tue.nl [131.155.2.46] by kweetal.tue.nl (8.9.3) for id BAA03986 (ESMTP); Sat, 11 Mar 2000 01:00:15 +0100 (MET) Received: from deathstar (n142.dial.tue.nl [131.155.209.141]) by hermes.tue.nl (Postfix) with ESMTP id 920E62E802 for ; Sat, 11 Mar 2000 01:00:14 +0100 (CET) From: "Marco van de Voort" To: freebsd-hackers@freebsd.org Date: Sat, 11 Mar 2000 00:58:13 +0100 Subject: Re: inner workings of the C compiler In-reply-to: <20000308150327.A77039@fisicc-ufm.edu> X-mailer: Pegasus Mail for Win32 (v3.12b) Message-Id: <20000311000014.920E62E802@hermes.tue.nl> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > to try things out i create a static binary and coerce it to use my > C library instead of the system's one. > > this is how i compile my program: > > cc -g -DYP -DFreeBSD -Wall -pedantic -ansi -c -I../../libc/include nss-test.c > cc -g -nostdlib -static -L../../libc -o nss-test nss-test.o \ > ../../csu/i386-elf/crt1.o ../../csu/i386-elf/crti.o -lc I'm no expert, but I tried something like this a few weeks back(to totally link without libc), and I was wondering, aren't you missing crtbegin and crtend ? 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