From owner-freebsd-current Mon Jun 1 00:19:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA15394 for freebsd-current-outgoing; Mon, 1 Jun 1998 00:19:46 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA15373 for ; Mon, 1 Jun 1998 00:19:35 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.8.8/8.8.8/Spinner) with ESMTP id PAA07555; Mon, 1 Jun 1998 15:17:43 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199806010717.PAA07555@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: John Birrell cc: root@enigami.com (The & of all Evil), brianfeldman@hotmail.com, freebsd-current@FreeBSD.ORG Subject: Re: ELF preparation step 2 done In-reply-to: Your message of "Mon, 01 Jun 1998 14:20:59 +1000." <199806010421.OAA16535@cimlogic.com.au> Date: Mon, 01 Jun 1998 15:17:42 +0800 From: Peter Wemm Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Birrell wrote: > The & of all Evil wrote: > > "Brian Feldman" writes: > > > > > Well, after making world and having all /usr/libexec/{elf,aout}, I guess one could make an ELF world in a couple steps, if they're interested: > > > 1. export BINFORMAT=elf and make usr.bin/objformat, and make install it > > > 2. go to lib/, 'echo "BINFORMAT=elf" > /etc/objectformat' and make all the libs, and install them (to /usr/lib? mine installed there, I moved them to /usr/lib/elf, should the elf libs really be there or just /usr/lib?) > > > 3. make the world; it _should_ work now, but I didn't try it > ^^^^^^^^^^^^^^^^^^^ > Obviously. > > > > > singularity:/usr/src/lib 14# make all > > ===> libcom_err > > cc -O -pipe -c /usr/src/lib/libcom_err/com_err.c -o com_err.o > > Unrecognized line in /etc/objectformat: BINFORMAT=elf > > Unrecognized line in /etc/objectformat: BINFORMAT=elf > > com_err.o: file not recognized: File format not recognized > > A few things (not necessarily all) you need to do: > > 1. Make world to get aout and elf tools (built as aout executables) in > their new places and objformat installed in /usr/bin. > 2. chflags -R noschg /usr/obj/usr/src/tmp > 3. rm -rf /usr/obj/* > 4. Create /etc/objectformat with the line OBJFORMAT=elf > 5. Add BINFORMAT=elf to /etc/make.conf > 6. cd /usr/src/csu/i386-elf; make obj/depend/all/install > 7. cd /usr/src/gnu/usr.bin/cc/libgcc; make obj/depend/all/install > 8. cd /usr/src/lib/libc; make obj/depend/all/install > 9. cd /usr/src/libexec/rtld-elf; make obj/depend/all/install > 10. cd /usr/src/lib; make obj/depend/all/install > 11. cd /usr/src/gnu/lib; make obj/depend/all/install > 12. cd /usr/src; make obj/depend/all/install > > I have tried this. Step 12 bombs in src/gnu/usr.bin/ld. I have a fully functioning make world that I believe will survive a transition from a.out to elf.. I have a load of patches to Makefiles that and a couple of tools (eg: install) that are needed to do this. Cheers, -Peter -- Peter Wemm Netplex Consulting To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message