Subject: Re: Binary Emulation on Amd64
To: Frank van der Linden <>
From: Gary Duzan <>
List: port-amd64
Date: 02/22/2004 07:51:17
In Message <> ,
   Frank van der Linden <> 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