From owner-freebsd-current Fri May 22 09:29:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA17797 for freebsd-current-outgoing; Fri, 22 May 1998 09:29:24 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from rah.star-gate.com (rah.star-gate.com [209.133.7.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA17769; Fri, 22 May 1998 09:29:18 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id JAA29272; Fri, 22 May 1998 09:28:42 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Message-Id: <199805221628.JAA29272@rah.star-gate.com> X-Mailer: exmh version 2.0.2 2/24/98 To: John Birrell cc: chuckr@glue.umd.edu, jkoshy@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: converting to ELF? In-reply-to: Your message of "Fri, 22 May 1998 18:37:47 +1000." <199805220837.SAA07171@cimlogic.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 22 May 1998 09:28:42 -0700 From: Amancio Hasty Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Tnks with your hints and I was able to compile libmmx for my system. The libmxx library doesn't work however thats a different story. Regards, Amancio > Amancio Hasty wrote: > > Any clues as to how to complete the tool chain? > > > > {root} cc -elf foo.c > > /usr/libexec/elf/ld: cannot open crt1.o: No such file or directory > > The elf crt object is built from src/lib/csu/i386-elf. You'll need > to build and install that. > > Before you can "cc -elf foo.c", you need libc and libgcc in elf format. > The elf tools you build from src/gnu/usr.bin/binutils only work with > objects that they build, so you can't use the installed aout libraries. > > I'd suggest that you only build an elf libc.a and libgcc.a, not shared > versions or you might hose yourself. So cc -static is your friend. 8-) > And if you aren't game to install elf libraries in /usr/lib, then > use -nostdlib and -nostartfiles and give gcc explicit paths to the > build directories of crt1.o, libc.a and libgcc.a. > > -- > John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ > CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message