binutils: Target Selection

1 
1 18.1 Target Selection
1 =====================
1 
1 A "target" is an object file format.  A given target may be supported
1 for multiple architectures (⇒Architecture Selection).  A target
1 selection may also have variations for different operating systems or
1 architectures.
1 
1    The command to list valid target values is 'objdump -i' (the first
1 column of output contains the relevant information).
1 
1    Some sample values are: 'a.out-hp300bsd', 'ecoff-littlemips',
1 'a.out-sunos-big'.
1 
1    You can also specify a target using a configuration triplet.  This is
1 the same sort of name that is passed to 'configure' to specify a target.
1 When you use a configuration triplet as an argument, it must be fully
1 canonicalized.  You can see the canonical version of a triplet by
1 running the shell script 'config.sub' which is included with the
1 sources.
1 
1    Some sample configuration triplets are: 'm68k-hp-bsd',
1 'mips-dec-ultrix', 'sparc-sun-sunos'.
1 
1 'objdump' Target
1 ----------------
1 
1 Ways to specify:
1 
1   1. command line option: '-b' or '--target'
1 
1   2. environment variable 'GNUTARGET'
1 
1   3. deduced from the input file
1 
1 'objcopy' and 'strip' Input Target
1 ----------------------------------
1 
1 Ways to specify:
1 
1   1. command line options: '-I' or '--input-target', or '-F' or
1      '--target'
1 
1   2. environment variable 'GNUTARGET'
1 
1   3. deduced from the input file
1 
1 'objcopy' and 'strip' Output Target
1 -----------------------------------
1 
1 Ways to specify:
1 
1   1. command line options: '-O' or '--output-target', or '-F' or
1      '--target'
1 
1   2. the input target (see "'objcopy' and 'strip' Input Target" above)
1 
1   3. environment variable 'GNUTARGET'
1 
1   4. deduced from the input file
1 
1 'nm', 'size', and 'strings' Target
1 ----------------------------------
1 
1 Ways to specify:
1 
1   1. command line option: '--target'
1 
1   2. environment variable 'GNUTARGET'
1 
1   3. deduced from the input file
1