Go to the first, previous, next, last section, table of contents.

Target Selection

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 Target

Ways to specify:

  1. command line option: `-b' or `--target'
  2. environment variable GNUTARGET
  3. deduced from the input file

objcopy and strip Input Target

Ways to specify:

  1. command line options: `-I' or `--input-target', or `-F' or `--target'
  2. environment variable GNUTARGET
  3. deduced from the input file

objcopy and strip Output Target

Ways to specify:

  1. command line options: `-O' or `--output-target', or `-F' or `--target'
  2. the input target (see "objcopy and strip Input Target" above)
  3. environment variable GNUTARGET
  4. deduced from the input file

nm, size, and strings Target

Ways to specify:

  1. command line option: `--target'
  2. environment variable GNUTARGET
  3. deduced from the input file

Linker Input Target

Ways to specify:

  1. command line option: `-b' or `--format' (see section `Options' in Using LD)
  2. script command TARGET (see section `Option Commands' in Using LD)
  3. environment variable GNUTARGET (see section `Environment' in Using LD)
  4. the default target of the selected linker emulation (see section Linker emulation selection)

Linker Output Target

Ways to specify:

  1. command line option: `-oformat' (see section `Options' in Using LD)
  2. script command OUTPUT_FORMAT (see section `Option Commands' in Using LD)
  3. the linker input target (see "Linker Input Target" above)


Go to the first, previous, next, last section, table of contents.