Annotation of src/usr.bin/elf2olf/elf2olf.1, Revision 1.10
1.10 ! aaron 1: .\" $OpenBSD: elf2olf.1,v 1.9 2000/03/28 23:35:51 deraadt Exp $
1.3 etheisen 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.10 ! aaron 28: .\" @(#)$Id: elf2olf.1,v 1.9 2000/03/28 23:35:51 deraadt 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
1.5 aaron 41: .Ar module Op Ar ...
1.1 etheisen 42: .Nm olf2elf
43: .Op Fl v
1.5 aaron 44: .Ar file Op Ar ...
1.1 etheisen 45: .Sh DESCRIPTION
46: The
1.7 aaron 47: .Nm
1.1 etheisen 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
1.6 aaron 65: Specifies the operating system
1.1 etheisen 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.10 ! aaron 83: .El
1.1 etheisen 84: .El
85: .Pp
86: The
1.7 aaron 87: .Nm
1.1 etheisen 88: and
89: .Nm olf2elf
1.5 aaron 90: utilities exit 0 on success or >0 if an error occurred.
1.1 etheisen 91: .Sh BUGS
1.6 aaron 92: The
1.1 etheisen 93: .Em ELF
94: version 1 object module format lacks any real method to determine the native
1.8 alex 95: operating system for any given binary thus mandating the existence of these
1.1 etheisen 96: tools.
97: The converted binaries created by
1.7 aaron 98: .Nm
1.1 etheisen 99: will no longer execute on their native operating system, only on OLF
100: enabled platforms, although
101: .Nm olf2elf
102: will undo the damage.
103: .Sh AUTHOR
104: Erik Theisen
105: .Sh HISTORY
106: The
1.7 aaron 107: .Nm
1.1 etheisen 108: and
109: .Nm olf2elf
1.5 aaron 110: utilities first appeared in
1.4 millert 111: .Ox 2.1 .