Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Aug 1997 18:46:10 -0700
From:      John Polstra <jdp@polstra.com>
To:        hasty@rah.star-gate.com
Cc:        current@freebsd.org
Subject:   Re: second post: elf patches for -current
Message-ID:  <199708020146.SAA09667@austin.polstra.com>
In-Reply-To: <199708011006.DAA03932@rah.star-gate.com>
References:  <199708011006.DAA03932@rah.star-gate.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <199708011006.DAA03932@rah.star-gate.com>,
Amancio Hasty  <hasty@rah.star-gate.com> wrote:
> 
> I downloaded the elfkit from John's ftp site and noticed that the
> README file was dated from  1996/04/16 and that it requires the
> include files from FreeBSD 2.1 . 
> 
> Doesn't make sense that we should patches for freebsd -current that
> does not require the include files from 2.1?

ElfKit is almost obsolete, because just about everything you need
is now in -current.  You can build the FreeBSD compiler for ELF by
specifying "BINFORMAT=elf".  The standard libc in -current (and I
think in -2.2 also) can be built for ELF, and it works just fine.
You don't have to do anything special; just compile it with the
ELF tools.

The current version of GNU binutils has all the FreeBSD-ELF support
in it.  Just configure it like this and then build it:

    ./configure --prefix=/usr/local/elf --host=i386-unknown-freebsd \
	    --target=i386-unknown-freebsdelf

John
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth



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