Annotation of src/usr.bin/elf2olf/elf2olf.1, Revision 1.3
1.3 ! etheisen 1: .\" $OpenBSD: elf2olf.1,v 1.2 1996/11/24 23:18:54 etheisen Exp $
! 2: .\"
! 3: .\" Copyright (c) 1996, 1997 Erik Theisen.
! 4: .\" All rights reserved.
1.1 etheisen 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, BUT
22: .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23: .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24: .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25: .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26: .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27: .\"
1.3 ! etheisen 28: .\" @(#)$Id: elf2olf.1,v 1.2 1996/11/24 23:18:54 etheisen Exp $
1.1 etheisen 29: .\"
1.3 ! etheisen 30: .Dd May 5, 1997
1.1 etheisen 31: .Dt ELF2OLF 1
1.3 ! etheisen 32: .Os
1.1 etheisen 33: .Sh NAME
34: .Nm elf2olf ,
35: .Nm olf2elf
36: .Nd convert between ELF and OLF object module format
37: .Sh SYNOPSIS
38: .Nm elf2olf
39: .Op Fl v
40: .Op Fl o Ar opsys
41: .Ar module ...
42: .Nm olf2elf
43: .Op Fl v
44: .Ar file ...
45: .Sh DESCRIPTION
46: The
47: .Nm elf2olf
48: utility reads the specified
49: .Em ELF
50: version 1 module operands and converts them to the default operating system's
51: .Em OLF
52: object module format.
53: The
54: .Nm olf2elf
55: utility reverses the process.
56: The
57: .Ar module
58: operands are processed in command line order.
1.2 etheisen 59: .Pp
1.1 etheisen 60: The options are as follows:
61: .Bl -tag -width Ds
62: .It Fl v
63: Operate in verbose mode.
64: .It Fl o Ar opsys
65: Specifies the operating system
66: .Em OLF
67: tag
68: .Em "opsys"
69: as follows:
70: .Bl -tag -width Ds
71: .It Ta Pa "openbsd" Ta "OpenBSD"
72: .It Ta Pa "netbsd" Ta "NetBSD"
73: .It Ta Pa "freebsd" Ta "FreeBSD"
74: .It Ta Pa "44bsd" Ta "4.4BSD"
75: .It Ta Pa "linux" Ta "Linux"
76: .It Ta Pa "svr4" Ta "AT&T System V Release 4"
77: .It Ta Pa "esix" Ta "esix UNIX"
78: .It Ta Pa "solaris" Ta "SunSoft Solaris"
79: .It Ta Pa "irix" Ta "SGI IRIX"
80: .It Ta Pa "sco " Ta "SCO UNIX"
81: .It Ta Pa "dell" Ta "DELL SVR4"
1.3 ! etheisen 82: .It Ta Pa "ncr " Ta "NCR SVR4"
1.1 etheisen 83: .El
84: .Pp
85: The
86: .Nm elf2olf
87: and
88: .Nm olf2elf
89: utilities exit 0 on success, and >0 if an error occurs.
90: .Sh BUGS
91: The
92: .Em ELF
93: version 1 object module format lacks any real method to determine the native
94: operating system for any given binary thus mandating the existance of these
95: tools.
96: The converted binaries created by
97: .Nm elf2olf
98: will no longer execute on their native operating system, only on OLF
99: enabled platforms, although
100: .Nm olf2elf
101: will undo the damage.
102: .Sh SEE ALSO
103: .Xr elf 5 ,
104: .Xr olf 5
105: .Sh AUTHOR
106: Erik Theisen
107: .Sh HISTORY
108: The
109: .Nm elf2olf
110: and
111: .Nm olf2elf
1.3 ! etheisen 112: utility first appeared in OpenBSD 2.1.