ELF2OLF(1)                 OpenBSD Reference Manual                 ELF2OLF(1)

NAME
     elf2olf, olf2elf - convert between ELF and OLF object module format

SYNOPSIS
     elf2olf [-v] [-o opsys] module [...]
     olf2elf [-v] file [...]

DESCRIPTION
     The elf2olf utility reads the specified ELF version 1 module operands and
     converts them to the default operating system's OLF object module format.

     The olf2elf utility reverses the process.  The module operands are pro-
     cessed in command line order.

     The options are as follows:

     -v      Operate in verbose mode.

     -o opsys
             Specifies the operating system OLF tag opsys as follows:

                  openbsd   OpenBSD
                  netbsd    NetBSD
                  freebsd   FreeBSD
                  44bsd     4.4BSD
                  linux     Linux
                  svr4      AT&T System V Release 4
                  esix      esix UNIX
                  solaris   SunSoft Solaris
                  irix      SGI IRIX
                  sco       SCO UNIX
                  dell      DELL SVR4
                  ncr       NCR SVR4

     The elf2olf and olf2elf utilities exit 0 on success or >0 if an error oc-
     curred.

AUTHORS
     Erik Theisen

HISTORY
     The elf2olf and olf2elf utilities first appeared in OpenBSD 2.1.

BUGS
     The ELF version 1 object module format lacks any real method to determine
     the native operating system for any given binary thus mandating the exis-
     tence of these tools.  The converted binaries created by elf2olf will no
     longer execute on their native operating system, only on OLF enabled
     platforms, although olf2elf will undo the damage.

OpenBSD 2.9                       May 5, 1997                                1
