You can specify three aspects of the target system to the object code utilities, each in several ways:
the target
the architecture
the linker emulation (which applies to the linker only)
In the following summaries, the lists of ways to specify values are in order of decreasing precedence. The ways listed first override those listed later.
A target is an object file format. A given target may be supported for multiple architectures (see Section 13.2). A target selection may also have variations for different operating systems or architectures.
The command to list valid target values is "prefix-objdump -i" (the first column of output contains the relevant information).
Some sample values are: a.out-hp300bsd, ecoff-littlemips, a.out-sunos-big.
You can also specify a target using a configuration triplet. This is the same sort of name that is passed to configure to specify a target. When you use a configuration triplet as an argument, it must be fully canonicalized. You can see the canonical version of a triplet by running the shell script config.sub which is included with the sources.
Ways to specify:
command line option: "-b" or "--target"
environment variable GNUPREFIX
deduced from the input file
Ways to specify:
command line options: "-I" or "--input-target", or "-F" or "--target"
environment variable GNUPREFIX
deduced from the input file
Ways to specify:
command line options: "-O" or "--output-target", or "-F" or "--target"
the input target (see "objcopy and strip Input Target" above)
environment variable GNUPREFIX
deduced from the input file
Ways to specify:
command line option: "--target"
environment variable GNUPREFIX
deduced from the input file
Ways to specify:
command line option: "-b" or "--format" (see Section 10.1.)
script command PREFIX (see Section 11.7.)
environment variable GNUPREFIX (see Section 10.2.)
the default target of the selected linker emulation (see Section 13.3.)
Ways to specify:
command line option: "-oformat" (see Section 10.1.)
script command OUTPUT_FORMAT (see Section 11.7.)
the linker input target (see "Linker Input Target" above)