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, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 132000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 14Free Software Foundation, Inc. 15 16Permission is granted to copy, distribute and/or modify this document 17under the terms of the GNU Free Documentation License, Version 1.3 18or any later version published by the Free Software Foundation; 19with no Invariant Sections, with no Front-Cover Texts, and with no 20Back-Cover Texts. A copy of the license is included in the 21section entitled ``GNU Free Documentation License''. 22 23--> 24<meta http-equiv="Content-Style-Type" content="text/css"> 25<style type="text/css"><!-- 26 pre.display { font-family:inherit } 27 pre.format { font-family:inherit } 28 pre.smalldisplay { font-family:inherit; font-size:smaller } 29 pre.smallformat { font-family:inherit; font-size:smaller } 30 pre.smallexample { font-size:smaller } 31 pre.smalllisp { font-size:smaller } 32 span.sc { font-variant:small-caps } 33 span.roman { font-family:serif; font-weight:normal; } 34 span.sansserif { font-family:sans-serif; font-weight:normal; } 35--></style> 36<link rel="stylesheet" type="text/css" href="../cs.css"> 37</head> 38<body> 39<div class="node"> 40<a name="Target-Selection"></a> 41<p> 42Next: <a rel="next" accesskey="n" href="Architecture-Selection.html#Architecture-Selection">Architecture Selection</a>, 43Up: <a rel="up" accesskey="u" href="Selecting-the-Target-System.html#Selecting-the-Target-System">Selecting the Target System</a> 44<hr> 45</div> 46 47<h3 class="section">18.1 Target Selection</h3> 48 49<p>A <dfn>target</dfn> is an object file format. A given target may be 50supported for multiple architectures (see <a href="Architecture-Selection.html#Architecture-Selection">Architecture Selection</a>). 51A target selection may also have variations for different operating 52systems or architectures. 53 54 <p>The command to list valid target values is ‘<samp><span class="samp">objdump -i</span></samp>’ 55(the first column of output contains the relevant information). 56 57 <p>Some sample values are: ‘<samp><span class="samp">a.out-hp300bsd</span></samp>’, ‘<samp><span class="samp">ecoff-littlemips</span></samp>’, 58‘<samp><span class="samp">a.out-sunos-big</span></samp>’. 59 60 <p>You can also specify a target using a configuration triplet. This is 61the same sort of name that is passed to <samp><span class="file">configure</span></samp> to specify a 62target. When you use a configuration triplet as an argument, it must be 63fully canonicalized. You can see the canonical version of a triplet by 64running the shell script <samp><span class="file">config.sub</span></samp> which is included with the 65sources. 66 67 <p>Some sample configuration triplets are: ‘<samp><span class="samp">m68k-hp-bsd</span></samp>’, 68‘<samp><span class="samp">mips-dec-ultrix</span></samp>’, ‘<samp><span class="samp">sparc-sun-sunos</span></samp>’. 69 70<h4 class="subheading"><samp><span class="command">objdump</span></samp> Target</h4> 71 72<p>Ways to specify: 73 74 <ol type=1 start=1> 75<li>command line option: <samp><span class="option">-b</span></samp> or <samp><span class="option">--target</span></samp> 76 77 <li>environment variable <code>GNUTARGET</code> 78 79 <li>deduced from the input file 80 </ol> 81 82<h4 class="subheading"><samp><span class="command">objcopy</span></samp> and <samp><span class="command">strip</span></samp> Input Target</h4> 83 84<p>Ways to specify: 85 86 <ol type=1 start=1> 87<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> 88 89 <li>environment variable <code>GNUTARGET</code> 90 91 <li>deduced from the input file 92 </ol> 93 94<h4 class="subheading"><samp><span class="command">objcopy</span></samp> and <samp><span class="command">strip</span></samp> Output Target</h4> 95 96<p>Ways to specify: 97 98 <ol type=1 start=1> 99<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> 100 101 <li>the input target (see “<samp><span class="command">objcopy</span></samp> and <samp><span class="command">strip</span></samp> Input Target” above) 102 103 <li>environment variable <code>GNUTARGET</code> 104 105 <li>deduced from the input file 106 </ol> 107 108<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> 109 110<p>Ways to specify: 111 112 <ol type=1 start=1> 113<li>command line option: <samp><span class="option">--target</span></samp> 114 115 <li>environment variable <code>GNUTARGET</code> 116 117 <li>deduced from the input file 118 </ol> 119 120 </body></html> 121 122