summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoretheisen <etheisen@openbsd.org>1996-11-24 23:09:38 +0000
committeretheisen <etheisen@openbsd.org>1996-11-24 23:09:38 +0000
commitddc5bd1ed86cf5ef74901a9cd9558256473b8127 (patch)
treeb3e452d32f22b3b59f74243d0af72f14c1e3dfe6
parentextern decl of cfdata from device.h conflicted with static one in-here (diff)
downloadwireguard-openbsd-ddc5bd1ed86cf5ef74901a9cd9558256473b8127.tar.xz
wireguard-openbsd-ddc5bd1ed86cf5ef74901a9cd9558256473b8127.zip
Manpage anyone?
-rw-r--r--usr.bin/elf2olf/Makefile4
-rw-r--r--usr.bin/elf2olf/elf2olf.1110
2 files changed, 112 insertions, 2 deletions
diff --git a/usr.bin/elf2olf/Makefile b/usr.bin/elf2olf/Makefile
index 7f8fb7ad8a1..6e0e987b7c1 100644
--- a/usr.bin/elf2olf/Makefile
+++ b/usr.bin/elf2olf/Makefile
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.3 1996/11/14 15:04:50 mickey Exp $
+# $OpenBSD: Makefile,v 1.4 1996/11/24 23:09:38 etheisen Exp $
PROG= elf2olf
CPPFLAGS+= -DOS_ID=OOS_OPENBSD
LINKS= ${BINDIR}/elf2olf ${BINDIR}/olf2olf
-NOMAN=
+MLINKS= elf2olf.1 olf2elf.1
.include <bsd.prog.mk>
diff --git a/usr.bin/elf2olf/elf2olf.1 b/usr.bin/elf2olf/elf2olf.1
new file mode 100644
index 00000000000..2cec3614889
--- /dev/null
+++ b/usr.bin/elf2olf/elf2olf.1
@@ -0,0 +1,110 @@
+.\" $OpenBSD: elf2olf.1,v 1.1 1996/11/24 23:09:39 etheisen Exp $
+.\"
+.\" Copyright (c) 1996 Erik Theisen. All rights reserved.
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\" 3. The name of the author may not be used to endorse or promote products
+.\" derived from this software without specific prior written permission
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\" @(#)$Id: elf2olf.1,v 1.1 1996/11/24 23:09:39 etheisen Exp $
+.\"
+.Dd November 24, 1996
+.Dt ELF2OLF 1
+.Os OpenBSD 2.0
+.Sh NAME
+.Nm elf2olf ,
+.Nm olf2elf
+.Nd convert between ELF and OLF object module format
+.Sh SYNOPSIS
+.Nm elf2olf
+.Op Fl v
+.Op Fl o Ar opsys
+.Ar module ...
+.Nm olf2elf
+.Op Fl v
+.Ar file ...
+.Sh DESCRIPTION
+The
+.Nm elf2olf
+utility reads the specified
+.Em ELF
+version 1 module operands and converts them to the default operating system's
+.Em OLF
+object module format.
+The
+.Nm olf2elf
+utility reverses the process.
+The
+.Ar module
+operands are processed in command line order.
+.Sh OPTIONS
+The options are as follows:
+.Bl -tag -width Ds
+.It Fl v
+Operate in verbose mode.
+.It Fl o Ar opsys
+Specifies the operating system
+.Em OLF
+tag
+.Em "opsys"
+as follows:
+.Bl -tag -width Ds
+.It Ta Pa "openbsd" Ta "OpenBSD"
+.It Ta Pa "netbsd" Ta "NetBSD"
+.It Ta Pa "freebsd" Ta "FreeBSD"
+.It Ta Pa "44bsd" Ta "4.4BSD"
+.It Ta Pa "linux" Ta "Linux"
+.It Ta Pa "mach" Ta "Mach"
+.It Ta Pa "svr4" Ta "AT&T System V Release 4"
+.It Ta Pa "esix" Ta "esix UNIX"
+.It Ta Pa "solaris" Ta "SunSoft Solaris"
+.It Ta Pa "irix" Ta "SGI IRIX"
+.It Ta Pa "sco " Ta "SCO UNIX"
+.It Ta Pa "dell" Ta "DELL SVR4"
+.El
+.Pp
+The
+.Nm elf2olf
+and
+.Nm olf2elf
+utilities exit 0 on success, and >0 if an error occurs.
+.Sh BUGS
+The
+.Em ELF
+version 1 object module format lacks any real method to determine the native
+operating system for any given binary thus mandating the existance of these
+tools.
+The converted binaries created by
+.Nm elf2olf
+will no longer execute on their native operating system, only on OLF
+enabled platforms, although
+.Nm olf2elf
+will undo the damage.
+.Sh SEE ALSO
+.Xr elf 5 ,
+.Xr olf 5
+.Sh AUTHOR
+Erik Theisen
+.Sh HISTORY
+The
+.Nm elf2olf
+and
+.Nm olf2elf
+utility first appeared in OpenBSD 2.0.