Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 1998 21:43:58 +0100
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Question about ELF support?
Message-ID:  <19980129214358.48468@keltia.freenix.fr>
In-Reply-To: <199801291808.KAA16990@shell6.ba.best.com>; from Vinay Bannai on Thu, Jan 29, 1998 at 10:08:36AM -0800
References:  <199801291808.KAA16990@shell6.ba.best.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <http://www.cygnus.com/egcs/>; & <http://www.goof.com/pcg/>;

-- 
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980129214358.48468>