A target is an object file format. A given target may be supported for multiple architectures (see Architecture Selection). A target selection may also have variations for different operating systems or architectures.
The command to list valid target values is 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.
Some sample configuration triplets are: m68k-hp-bsd,
mips-dec-ultrix, sparc-sun-sunos.
objdump TargetWays to specify:
-b or --target
GNUTARGET
objcopy and strip Input TargetWays to specify:
-I or --input-target, or -F or --target
GNUTARGET
objcopy and strip Output TargetWays to specify:
-O or --output-target, or -F or --target
objcopy and strip Input Target" above)
GNUTARGET
nm, size, and strings TargetWays to specify:
--target
GNUTARGET
Ways to specify:
-b or --format
(see Options)
TARGET
(see Format Commands)
GNUTARGET
(see Environment)
Ways to specify:
-oformat
(see Options)
OUTPUT_FORMAT
(see Format Commands)