From owner-freebsd-hackers Thu Jan 29 13:06:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA20827 for hackers-outgoing; Thu, 29 Jan 1998 13:06:03 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA20689 for ; Thu, 29 Jan 1998 13:05:46 -0800 (PST) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.8.8/frmug-2.2/nospam) with UUCP id WAA00472 for freebsd-hackers@FreeBSD.ORG; Thu, 29 Jan 1998 22:05:21 +0100 (CET) (envelope-from roberto@keltia.freenix.fr) Received: (from roberto@localhost) by keltia.freenix.fr (8.8.8/keltia-2.13/nospam) id VAA17131; Thu, 29 Jan 1998 21:43:59 +0100 (CET) (envelope-from roberto) Message-ID: <19980129214358.48468@keltia.freenix.fr> Date: Thu, 29 Jan 1998 21:43:58 +0100 From: Ollivier Robert To: freebsd-hackers@FreeBSD.ORG Subject: Re: Question about ELF support? Mail-Followup-To: freebsd-hackers@FreeBSD.ORG References: <199801291808.KAA16990@shell6.ba.best.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <199801291808.KAA16990@shell6.ba.best.com>; from Vinay Bannai on Thu, Jan 29, 1998 at 10:08:36AM -0800 X-Operating-System: FreeBSD 3.0-CURRENT ctm#4019 AMD-K6 MMX @ 225 MHz Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe hackers" According to Vinay Bannai: > I am trying to find out if there is a gcc compiler available on FreeBSD > which cross-compiles for the ELF format. Any other suggestions are also > welcome. The stock gcc in /usr/src can be recompiled to emit ELF asm files although you need the latest binutils 2.8.1 as well. You'll need the ELFKit from ftp.polstra.com. Read the archive for freebsd-hackers & freebsd-current as well, we just had several discussions about that :-) The best way is to use the ELFkit and egcs/pgcc as cross compiler. Works wonders here: /opt/elf: drwxr-xr-x 2 roberto staff 1024 Jan 27 00:14 bin/ drwxr-xr-x 5 roberto staff 512 Dec 25 00:05 i386-unknown-freebsdelf/ drwxr-xr-x 3 roberto staff 512 Dec 28 20:14 include/ drwxr-xr-x 2 roberto staff 2048 Jan 27 00:14 info/ drwxr-xr-x 3 roberto staff 2560 Jan 27 00:14 lib/ drwxr-xr-x 2 roberto staff 512 Dec 24 22:05 libexec/ drwxr-xr-x 3 roberto staff 512 Dec 25 00:01 man/ elf-cc -v Reading specs from /opt/elf/lib/gcc-lib/i386-unknown-freebsdelf/pgcc-2.91.05/specs gcc version pgcc-2.91.05 980122 (gcc-2.8.0 release) You can follow most of the instructions in ELFkit's README file although the part about patching is obsolete. egcs/pgcc: & -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #54: Mon Jan 26 20:29:17 CET 1998