Subject: Re: I've got ELF - new snapshot
To: Dave Huang <khym@azeotrope.org>
From: Frederick Bruckman <fredb@immanent.net>
List: port-mac68k
Date: 11/26/2001 18:53:33
On Mon, 26 Nov 2001, Dave Huang wrote:

> On Sun, 25 Nov 2001, Space Case wrote:
> > I'm happy to say, I'm running ELF on my Q650.
> >
> > Thanks to a seed kernel, patches and hints from Chuck Silvers, and Nigel's
> > work on the Booter, I was able to build and run an ELF system.  The brave
> > among you now have the chance to do it yourselves.
>
> Ooh, nifty :) The last a.out -> ELF switch I went through was on i386,
> which was a while back... so perhaps you or someone could refresh my
> memory: does COMPAT_AOUT still work like it used to on i386? I.e., I can
> put any old shared libs I need to keep around in /emul/aout/usr/lib?

You don't need COMPAT_AOUT for that -- since 1.4.3 and 1.5, "ld.so"
and "ldconfig" expand the search path by prepending "/emul/aout" to
every directory in the path. [COMPAT_AOUT does that in the kernel, but
for everything, not only shared libraries.] Also, "ld.so" should
recognize "/emul/aout/etc/ld.so.conf" as it's config file, before
"/etc/ld.so.conf", which has a different purpose and format on ELF
systems.

Note: no one's yet figured out how to build "ld.so" on ELF systems, so
the ports that have made the switch presently unpack a uuencoded
version that was built on a NetBSD 1.4.3 box (or therabouts).

Frederick