| @@ -1,119 +1,120 @@ | | | @@ -1,119 +1,120 @@ |
1 | .\" $NetBSD: compat_bsdos.8,v 1.3 2020/08/28 17:13:13 wiz Exp $ | | 1 | .\" $NetBSD: compat_bsdos.8,v 1.4 2020/08/29 21:42:25 uwe Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2020 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2020 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to The NetBSD Foundation | | 6 | .\" This code is derived from software contributed to The NetBSD Foundation |
7 | .\" by Dan Plassche. | | 7 | .\" by Dan Plassche. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
15 | .\" notice, this list of conditions and the following disclaimer in the | | 15 | .\" notice, this list of conditions and the following disclaimer in the |
16 | .\" documentation and/or other materials provided with the distribution. | | 16 | .\" documentation and/or other materials provided with the distribution. |
17 | .\" | | 17 | .\" |
18 | .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS | | 18 | .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS |
19 | .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | | 19 | .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
20 | .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | | 20 | .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
21 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | | 21 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS |
22 | .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | | 22 | .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
23 | .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | | 23 | .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
24 | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | | 24 | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
25 | .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | | 25 | .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
26 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 26 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
27 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 27 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
28 | .\" POSSIBILITY OF SUCH DAMAGE. | | 28 | .\" POSSIBILITY OF SUCH DAMAGE. |
29 | .\" | | 29 | .\" |
30 | .Dd August 27, 2020 | | 30 | .Dd August 27, 2020 |
31 | .Dt COMPAT_BSDOS 8 | | 31 | .Dt COMPAT_BSDOS 8 |
32 | .Os | | 32 | .Os |
33 | .Sh NAME | | 33 | .Sh NAME |
34 | .Nm compat_bsdos | | 34 | .Nm compat_bsdos |
35 | .Nd binary compatibility for BSDi releases | | 35 | .Nd binary compatibility for BSDi releases |
36 | .Sh DESCRIPTION | | 36 | .Sh DESCRIPTION |
37 | The | | 37 | The |
38 | .Dv COMPAT_NOMID | | 38 | .Dv COMPAT_NOMID |
39 | kernel option provides compatibility with | | 39 | kernel option includes compatibility with |
40 | .Tn BSDi Ns No \ 1. Ns Em \^x Ns \|\(en\|3. Ns Em \^x | | 40 | .Tn BSDi Ns No \ 1. Ns Em \^x Ns \|\(en\|3. Ns Em \^x |
41 | .Xr a.out 5 | | 41 | .Xr a.out 5 |
42 | binaries on | | 42 | binaries on |
43 | .Nx Ns Tn /i386 | | 43 | .Nx Ns Tn /i386 |
44 | and | | 44 | and |
45 | .Nx Ns Tn /amd64 . | | 45 | .Nx Ns Tn /amd64 . |
46 | The option is included in the | | 46 | The option is enabled by default in the |
47 | .Li GENERIC | | 47 | .Li GENERIC |
48 | kernel on i386, | | 48 | kernel on i386, |
49 | but needs to be enabled along with | | 49 | but needs to be set along with |
50 | .Dv EXEC_AOUT | | 50 | .Dv EXEC_AOUT |
51 | on amd64. | | 51 | on amd64. |
52 | .Pp | | 52 | .Pp |
53 | Null memory protection must be disabled with the | | 53 | Null memory protection must be disabled with the |
54 | .Xr sysctl 7 | | 54 | .Xr sysctl 7 |
55 | option | | 55 | option |
56 | .Va vm.user_va0_disable | | 56 | .Va vm.user_va0_disable |
57 | set to | | 57 | set to |
58 | .Li 0 | | 58 | .Li 0 |
59 | for the binaries to run successfully. | | 59 | for the binaries to run successfully. |
60 | .Pp | | 60 | .Pp |
61 | .Bsx 2.0+ | | 61 | .Bsx 2.0+ |
62 | binaries also require an | | 62 | binaries also require an |
63 | .Xr ldconfig 8 | | 63 | .Xr ldconfig 8 |
64 | configuration or a symbolic link | | 64 | configuration or a symbolic link |
65 | pointing to the | | 65 | pointing to the |
66 | .Pa /emul/bsdos/shlib | | 66 | .Pa /emul/bsdos/shlib |
67 | directory to run outside of a chroot. | | 67 | directory to run outside of a chroot. |
68 | .Pp | | 68 | .Pp |
69 | .Bsx 4.0 | | 69 | .Bsx 4.0 |
70 | switched to ELF binaries that do not run under the | | 70 | switched to an ELF binary executable format |
| | | 71 | that does not run under the |
71 | compatibility layers currently available on | | 72 | compatibility layers currently available on |
72 | .Nx . | | 73 | .Nx . |
73 | .Sh SEE ALSO | | 74 | .Sh SEE ALSO |
74 | .Xr options 4 , | | 75 | .Xr options 4 , |
75 | .Xr a.out 5 , | | 76 | .Xr a.out 5 , |
76 | .Xr elf 5 , | | 77 | .Xr elf 5 , |
77 | .Xr sysctl 7 , | | 78 | .Xr sysctl 7 , |
78 | .Xr compat_netbsd32 8 , | | 79 | .Xr compat_netbsd32 8 , |
79 | .Xr ldconfig 8 | | 80 | .Xr ldconfig 8 |
80 | .Sh HISTORY | | 81 | .Sh HISTORY |
81 | .Tn BSD/386 Ns No \ 1.0\|\(en\|1.1 | | 82 | .Tn BSD/386 Ns No \ 1.0\|\(en\|1.1 |
82 | was derived from | | 83 | was derived from |
83 | .Bx 4.3 Tn Reno | | 84 | .Bx 4.3 Tn Reno |
84 | code in the | | 85 | code in the |
85 | .Tn Net/2 | | 86 | .Tn Net/2 |
86 | release. | | 87 | release. |
87 | .Pp | | 88 | .Pp |
88 | .Bsx 2.0 | | 89 | .Bsx 2.0 |
89 | was based on | | 90 | was based on |
90 | .Bx 4.4 Tn Lite , | | 91 | .Bx 4.4 Tn Lite , |
91 | but introduced new static shared libraries | | 92 | but introduced new static shared libraries |
92 | compiled into binary objects under | | 93 | compiled into binary objects under |
93 | .Pa /shlib . | | 94 | .Pa /shlib . |
94 | The build system included the | | 95 | The build system included the |
95 | .Li shlicc | | 96 | .Li shlicc |
96 | command with the | | 97 | command with the |
97 | .Fl Bstatic | | 98 | .Fl Bstatic |
98 | flag that allowed reverting to the standard | | 99 | flag that allowed reverting to the standard |
99 | library archive format. | | 100 | library archive format. |
100 | .Pp | | 101 | .Pp |
101 | .Ox 2.2\|\(en\|4.7 | | 102 | .Ox 2.2\|\(en\|4.7 |
102 | included a different compatibility implementation | | 103 | included a different compatibility implementation |
103 | under the | | 104 | under the |
104 | .Dv COMPAT_BSDOS | | 105 | .Dv COMPAT_BSDOS |
105 | kernel option. | | 106 | kernel option. |
106 | .Sh BUGS | | 107 | .Sh BUGS |
107 | .Bsx | | 108 | .Bsx |
108 | compatibility was broken on | | 109 | compatibility was broken on |
109 | .Nx 5\|\(en\|6 | | 110 | .Nx 5\|\(en\|6 |
110 | .Pp | | 111 | .Pp |
111 | .Bsx 3.0 | | 112 | .Bsx 3.0 |
112 | added | | 113 | added |
113 | .Tn SPARC | | 114 | .Tn SPARC |
114 | support, but the binaries are incorrectly recognized as | | 115 | support, but the binaries are incorrectly recognized as |
115 | .Tn SunOS | | 116 | .Tn SunOS |
116 | executables and fail on | | 117 | executables and fail on |
117 | .Nx Ns Tn /sparc | | 118 | .Nx Ns Tn /sparc |
118 | and | | 119 | and |
119 | .Nx Ns Tn /sparc64 . | | 120 | .Nx Ns Tn /sparc64 . |