DragonFly On-Line Manual Pages


OBJFORMAT(1)	       DragonFly General Commands Manual	  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 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. LDVER If this variable is defined as ``ld.gold'' then the ld command will be an alias for the gold linker. If it is undefined or any other value, the ld command will execute the classic gnu 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.

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 ALSO

file(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>. DragonFly 4.1 February 24, 2012 DragonFly 4.1