OBJFORMAT(1) BSD General Commands Manual OBJFORMAT(1)NAMEobjformat — reports default binary format and program deflector
SYNOPSISobjformat
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 cur‐
rent compiler used by DragonFly and can be overridden using the CCVER
environment variable.
ENVIRONMENT
BINUTILSVER The “<binutils>” component to be used for binutils paths.
CCVER The “<ccver>” component to be used for compiler paths.
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.
DIAGNOSTICS
The objformat utility returns with exit code 1 if called with an improper
number of arguments, or if prog could not be executed.
SEE ALSOfile(1), getobjformat(3)HISTORY
The objformat command appeared in FreeBSD 3.0.
AUTHORS
The objformat utility was written by Peter Wemm ⟨peter@netplex.com.au⟩.
This manual page was written by David O'Brien ⟨obrien@NUXI.com⟩.
BSD May 23, 2009 BSD