xref: /netbsd-src/share/man/man8/compat_netbsd32.8 (revision 23c8222edbfb0f0932d88a8351d3a0cf817dfb9e)
1.\"	$NetBSD: compat_netbsd32.8,v 1.5 2003/03/31 09:32:43 wiz Exp $
2.\"
3.\" Copyright (c) 2001 Matthew R. Green
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. The name of the author may not be used to endorse or promote products
15.\"    derived from this software without specific prior written permission.
16.\"
17.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27.\" SUCH DAMAGE.
28.\"
29.Dd February 3, 2001
30.Dt COMPAT_NETBSD32 8
31.Os
32.Sh NAME
33.Nm compat_netbsd32
34.Nd setup procedure for 32-bit compatibility on 64-bit platform
35.Sh DESCRIPTION
36The
37.Nm
38module allows
39.Nx Ns Tn /sparc64
40to run
41.Nx Ns Tn /sparc
42executables.
43.Pp
44To use
45.Nm ,
46one must either have
47.Dv COMPAT_NETBSD32
48in the kernel, or load the compat_netbsd32 and exec_netbsd32 kernel
49modules.
50.Pp
51Static executables typically need no additional setup.
52Dynamic binaries require the dynamic linker, plus shared libraries.  Most of
53these files will need to be placed under
54.Pa /emul/netbsd32 .
55.Pp
56The easiest method of installing support for these is via the
57.Pa emulators/netbsd32_compat14
58and
59.Pa emulators/netbsd32_compat15
60packages, provided in the
61.Nx
62packages collection.  These install 32-bit a.out and ELF compatibility
63libraries, respectively.  The details of what is actually necessary for
64correct operation are given below.  This obviously is handled by the
65emulator packages.
66.Pp
67For a.out compatibility,
68.Pa /usr/libexec/ld.so
69from a 32-bit distribution is required to exist as
70.Pa /emul/netbsd32/usr/libexec/ld.so .
71For 32-bit ELF compatibility,
72.Pa /usr/libexec/ld.elf_so
73needs to be in
74.Pa /emul/netbsd32/usr/libexec/ld.elf_so .
75.Pp
76The shared libraries for a.out binaries do not live under the
77.Pa /emul/netbsd32
78directory, but under the
79.Pa /emul/aout
80directory, where the a.out dynamic linker will find them.
81.Sh BUGS
82A list of things which fail to work in compatibility mode should
83be here.
84.Pp
85IPC is not well supported.
86.Pp
87.Xr sysctl 3
88is not well supported.
89