Go to the previous, next section.
You can specify three aspects of the target system to the GNU binary file utilities, each in several ways:
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.
The commands to list valid values only list the values for which the programs you are running were configured. If they were configured with `--with-targets=all', the commands list most of the available values, but a few are left out; not all targets can be configured in at once because some of them can only be configured native (on hosts with the same type as the target system).
A target is an object file format. A given target may be supported for multiple architectures (see section 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'.
objdump
TargetWays to specify:
GNUTARGET
objcopy
and strip
Input TargetWays to specify:
GNUTARGET
objcopy
and strip
Output TargetWays to specify:
objcopy
and strip
Input Target" above)
GNUTARGET
nm
, size
, and strings
TargetWays to specify:
GNUTARGET
Ways to specify:
TARGET
(see section `Option Commands' in Using LD)
GNUTARGET
(see section `Environment' in Using LD)
Ways to specify:
OUTPUT_FORMAT
(see section `Option Commands' in Using LD)
An architecture is a type of CPU on which an object file is to run. Its name may contain a colon, separating the name of the processor family from the name of the particular CPU.
The command to list valid architecture values is `objdump -i' (the second column contains the relevant information).
Sample values: `m68k:68020', `mips:3000', `sparc'.
objdump
ArchitectureWays to specify:
objcopy
, nm
, size
, strings
ArchitectureWays to specify:
Ways to specify:
Ways to specify:
OUTPUT_ARCH
(see section `Option Commands' in Using LD)
A linker emulation is a "personality" of the linker, which gives the linker default values for the other aspects of the target system. In particular, it consists of
The command to list valid linker emulation values is `ld -V'.
Sample values: `hp300bsd', `mipslit', `sun4'.
Ways to specify:
LDEMULATION
DEFAULT_EMULATION
from `Makefile',
which comes from EMUL
in `config/target.mt'
Go to the previous, next section.