Subject: Re: Binary Emulation on Amd64
To: Frank van der Linden <fvdl@NetBSD.org>
From: Gary Duzan <gary@duzan.org>
List: port-amd64
Date: 02/22/2004 07:51:17
In Message <20040220140639.GA28981@vaasje.org> ,
   Frank van der Linden <fvdl@NetBSD.org> wrote:

=>On Thu, Feb 19, 2004 at 05:35:30PM -0600, John Goerzen wrote:
=>> What is the mechanism for handling shared libraries in this case?  Is it
=>> the same as Linux, namely 64-bit libs go in /lib64 and 32-bit ones in
=>> /lib?  Does that carry through to /usr/lib and /usr/pkg/lib as well?
=>
=>NetBSD uses the 'netbsd32' emulation layer, meaning that the libraries
=>are in /emul/netbsd32/lib and /emul/netbsd32/usr/lib.

   I have my box set up with different disks for i386 and amd64,
both current, and the amd64 disk mounts / and /usr from the i386
disk as /emul/netbsd32 and /emul/netbsd32/usr, respectively. With
this setup I can get /emul/netbsd32/bin/ls to work, but not
/emul/netbsd32/bin/sh or many other 32-bit executables. The ancient
setiathome NetBSD binary works with the latest EXEC_AOUT fixes.

					Gary Duzan