From owner-freebsd-hackers Fri Mar 10 15:52:41 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from picnic.mat.net (picnic.mat.net [206.246.122.133]) by hub.freebsd.org (Postfix) with ESMTP id 9EF7137BB47; Fri, 10 Mar 2000 15:52:34 -0800 (PST) (envelope-from chuckr@picnic.mat.net) Received: from localhost (chuckr@localhost [127.0.0.1]) by picnic.mat.net (8.9.3/8.9.3) with ESMTP id SAA35571; Fri, 10 Mar 2000 18:51:20 -0500 (EST) (envelope-from chuckr@picnic.mat.net) Date: Fri, 10 Mar 2000 18:51:20 -0500 (EST) From: Chuck Robey To: Oscar Bonilla Cc: Alfred Perlstein , Kris Kennaway , freebsd-hackers@FreeBSD.ORG Subject: Re: inner workings of the C compiler In-Reply-To: <20000310172706.A93660@fisicc-ufm.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 10 Mar 2000, Oscar Bonilla wrote: > $ cp Makefile.static Makefile > $ make > 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 > $ ./nss-test > files called > files called > retval = 1 > NS_SUCCESS > Bus error (core dumped) I wasn't reading this too closely, but if you're trying to hand feed in the object files, the C startup object file *MUST* come first in the list of object files, because it's gotta link at the lowest address ... Is that it? ---------------------------------------------------------------------------- Chuck Robey | Interests include C & Java programming, FreeBSD, chuckr@picnic.mat.net | electronics, communications, and signal processing. New Year's Resolution: I will not sphroxify gullible people into looking up fictitious words in the dictionary. ---------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message