Date: Thu, 21 May 1998 19:00:10 +1000 (EST) From: John Birrell <jb@cimlogic.com.au> To: chuckr@glue.umd.edu (Chuck Robey) Cc: jkoshy@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: converting to ELF? Message-ID: <199805210900.TAA04421@cimlogic.com.au> In-Reply-To: <Pine.BSF.3.96.980521031558.312d-100000@localhost> from Chuck Robey at "May 21, 98 03:23:31 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Chuck Robey wrote: > On Thu, 21 May 1998, Joseph Koshy wrote: > > > Whats the best way to bring up an ELF "world"? > > > > Is the ELFkit necessary or is there an incantation at `make world' > > time that will do the job? > > I was looking at that, a few days ago, in trying to do some elf testing > with regards to a port that I don't think out a.out linker can handle. > There's a reference to ld-elf.so in /sys/kern/imgact-elf.c, which I > guess is the elf runtime linker. I think that's built in > src/lib/csu/i386-elf. I tried to build that with our own tools, but > there's an assembly line there that our assembler won't handle, a > ".section" clause. The old elf stuff from John Polstra used to require > that you build binutils to get it working ... I did that about 18 months > ago, successfully, but I don't have any of that hanging around still. > > Right now, I'm messing around with all the patches I found on John's ftp > site, trying to see if they can be applied correctly to the latest > binutils and gcc-2.8.1. Suffice to say, you won't get it working just > with our own tools, I think. Most of the elf tools come from src/gnu/usr.bin/binutils (ld, ar, as, ranlib, strip, size etc). They are installed in /usr/libexec/elf, but not built by default (yet) on i386. gcc has been modified by Peter Wemm to support elf too. I think you are probably wasting your time patching things when the sources that are in the tree work AFAIK. Remember that you can't mix aout and elf (crt, rtld, libs, tools). -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805210900.TAA04421>