OBJFORMAT(1)

NAME
objformat - reports default binary format and program deflector

SYNOPSIS
objformat
prog

DESCRIPTION
If run as objformat the default object file format is reported. The only supported object file format is elf.

If invoked by any other name, the path of the prog that will be executed is determined as follows:

If prog is a binutil (such as as(1) and ld(1)), it is expanded to /usr/libexec/<binutils>/elf/prog and executed. “<binutils>” defaults to the current binutils version used by DragonFly and can be overridden using the BINUTILSVER environment variable.

If prog is a compiler (such as gcc(1)), it is expanded to /usr/libexec/<ccver>/prog and executed. “<ccver>” defaults to the current compiler used by DragonFly and can be overridden using the CCVER environment variable. If none of the /usr/libexec/<ccver>/prog exists, it falls back to try /usr/libexec/custom/prog to access the external compilers defined by compilers.conf(5).

ENVIRONMENT

BINUTILSVER
    The “<binutils>” component to be used for binutils paths.

CCVER
    The “<ccver>” component to be used for compiler paths.

LDVER
    If this variable is defined as “ld.bfd” then the ld command will be an alias for the classic “GNU ld” linker. If it is undefined or any other value, the ld command will execute the newer “GNU gold” linker.

OBJFORMAT_PATH
    If OBJFORMAT_PATH is set, its value is prepended to the path name determined by the objformat rules. If it is a sequence of colon separated paths, each of OBJFORMAT_PATH's elements is prepended to the path name until execution succeeds.

EXIT STATUS
The objformat utility returns with exit code 1 if called with an improper number of arguments, or if prog could not be executed.

SEE ALSO
file(1), getobjformat(3), compilers.conf(5)

HISTORY
The objformat command appeared in FreeBSD 3.0.

AUTHORS
-nosplit The objformat utility was written by Peter Wemm <peter@netplex.com.au>. This manual page was written by David O'Brien <obrien@NUXI.com>.