• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2013.11/share/doc/arm-arm-none-eabi/html/binutils.html/
1<html lang="en">
2<head>
3<title>Target Selection - GNU Binary Utilities</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="GNU Binary Utilities">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Selecting-the-Target-System.html#Selecting-the-Target-System" title="Selecting the Target System">
9<link rel="next" href="Architecture-Selection.html#Architecture-Selection" title="Architecture Selection">
10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
11<!--
12Copyright (C) 1991-2013 Free Software Foundation, Inc.
13
14Permission is granted to copy, distribute and/or modify this document
15under the terms of the GNU Free Documentation License, Version 1.3
16or any later version published by the Free Software Foundation;
17with no Invariant Sections, with no Front-Cover Texts, and with no
18Back-Cover Texts.  A copy of the license is included in the
19section entitled ``GNU Free Documentation License''.
20
21-->
22<meta http-equiv="Content-Style-Type" content="text/css">
23<style type="text/css"><!--
24  pre.display { font-family:inherit }
25  pre.format  { font-family:inherit }
26  pre.smalldisplay { font-family:inherit; font-size:smaller }
27  pre.smallformat  { font-family:inherit; font-size:smaller }
28  pre.smallexample { font-size:smaller }
29  pre.smalllisp    { font-size:smaller }
30  span.sc    { font-variant:small-caps }
31  span.roman { font-family:serif; font-weight:normal; } 
32  span.sansserif { font-family:sans-serif; font-weight:normal; } 
33--></style>
34<link rel="stylesheet" type="text/css" href="../cs.css">
35</head>
36<body>
37<div class="node">
38<a name="Target-Selection"></a>
39<p>
40Next:&nbsp;<a rel="next" accesskey="n" href="Architecture-Selection.html#Architecture-Selection">Architecture Selection</a>,
41Up:&nbsp;<a rel="up" accesskey="u" href="Selecting-the-Target-System.html#Selecting-the-Target-System">Selecting the Target System</a>
42<hr>
43</div>
44
45<h3 class="section">18.1 Target Selection</h3>
46
47<p>A <dfn>target</dfn> is an object file format.  A given target may be
48supported for multiple architectures (see <a href="Architecture-Selection.html#Architecture-Selection">Architecture Selection</a>). 
49A target selection may also have variations for different operating
50systems or architectures.
51
52   <p>The command to list valid target values is &lsquo;<samp><span class="samp">objdump -i</span></samp>&rsquo;
53(the first column of output contains the relevant information).
54
55   <p>Some sample values are: &lsquo;<samp><span class="samp">a.out-hp300bsd</span></samp>&rsquo;, &lsquo;<samp><span class="samp">ecoff-littlemips</span></samp>&rsquo;,
56&lsquo;<samp><span class="samp">a.out-sunos-big</span></samp>&rsquo;.
57
58   <p>You can also specify a target using a configuration triplet.  This is
59the same sort of name that is passed to <samp><span class="file">configure</span></samp> to specify a
60target.  When you use a configuration triplet as an argument, it must be
61fully canonicalized.  You can see the canonical version of a triplet by
62running the shell script <samp><span class="file">config.sub</span></samp> which is included with the
63sources.
64
65   <p>Some sample configuration triplets are: &lsquo;<samp><span class="samp">m68k-hp-bsd</span></samp>&rsquo;,
66&lsquo;<samp><span class="samp">mips-dec-ultrix</span></samp>&rsquo;, &lsquo;<samp><span class="samp">sparc-sun-sunos</span></samp>&rsquo;.
67
68<h4 class="subheading"><samp><span class="command">objdump</span></samp> Target</h4>
69
70<p>Ways to specify:
71
72     <ol type=1 start=1>
73<li>command line option: <samp><span class="option">-b</span></samp> or <samp><span class="option">--target</span></samp>
74
75     <li>environment variable <code>GNUTARGET</code>
76
77     <li>deduced from the input file
78        </ol>
79
80<h4 class="subheading"><samp><span class="command">objcopy</span></samp> and <samp><span class="command">strip</span></samp> Input Target</h4>
81
82<p>Ways to specify:
83
84     <ol type=1 start=1>
85<li>command line options: <samp><span class="option">-I</span></samp> or <samp><span class="option">--input-target</span></samp>, or <samp><span class="option">-F</span></samp> or <samp><span class="option">--target</span></samp>
86
87     <li>environment variable <code>GNUTARGET</code>
88
89     <li>deduced from the input file
90        </ol>
91
92<h4 class="subheading"><samp><span class="command">objcopy</span></samp> and <samp><span class="command">strip</span></samp> Output Target</h4>
93
94<p>Ways to specify:
95
96     <ol type=1 start=1>
97<li>command line options: <samp><span class="option">-O</span></samp> or <samp><span class="option">--output-target</span></samp>, or <samp><span class="option">-F</span></samp> or <samp><span class="option">--target</span></samp>
98
99     <li>the input target (see &ldquo;<samp><span class="command">objcopy</span></samp> and <samp><span class="command">strip</span></samp> Input Target&rdquo; above)
100
101     <li>environment variable <code>GNUTARGET</code>
102
103     <li>deduced from the input file
104        </ol>
105
106<h4 class="subheading"><samp><span class="command">nm</span></samp>, <samp><span class="command">size</span></samp>, and <samp><span class="command">strings</span></samp> Target</h4>
107
108<p>Ways to specify:
109
110     <ol type=1 start=1>
111<li>command line option: <samp><span class="option">--target</span></samp>
112
113     <li>environment variable <code>GNUTARGET</code>
114
115     <li>deduced from the input file
116        </ol>
117
118   </body></html>
119
120