www.delorie.com/gnu/docs/binutils/binutils_19.html   search  
 
Buy GNU books!


GNU Binary Utilities

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

15.2 Architecture selection

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 Architecture

Ways to specify:

  1. command line option: `-m' or `--architecture'

  2. deduced from the input file

objcopy, nm, size, strings Architecture

Ways to specify:

  1. deduced from the input file

Linker Input Architecture

Ways to specify:

  1. deduced from the input file

Linker Output Architecture

Ways to specify:

  1. script command OUTPUT_ARCH (see section `Miscellaneous Commands' in Using LD)

  2. the default architecture from the linker output target (see section 15.1 Target Selection)


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003