Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

154 lines
6.3KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1991-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3
  6. or any later version published by the Free Software Foundation;
  7. with no Invariant Sections, with no Front-Cover Texts, and with no
  8. Back-Cover Texts. A copy of the license is included in the
  9. section entitled "GNU Free Documentation License".
  10. -->
  11. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  12. <head>
  13. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  14. <title>Target Selection (GNU Binary Utilities)</title>
  15. <meta name="description" content="Target Selection (GNU Binary Utilities)">
  16. <meta name="keywords" content="Target Selection (GNU Binary Utilities)">
  17. <meta name="resource-type" content="document">
  18. <meta name="distribution" content="global">
  19. <meta name="Generator" content="makeinfo">
  20. <link href="index.html#Top" rel="start" title="Top">
  21. <link href="Binutils-Index.html#Binutils-Index" rel="index" title="Binutils Index">
  22. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  23. <link href="Selecting-the-Target-System.html#Selecting-the-Target-System" rel="up" title="Selecting the Target System">
  24. <link href="Architecture-Selection.html#Architecture-Selection" rel="next" title="Architecture Selection">
  25. <link href="Selecting-the-Target-System.html#Selecting-the-Target-System" rel="prev" title="Selecting the Target System">
  26. <style type="text/css">
  27. <!--
  28. a.summary-letter {text-decoration: none}
  29. blockquote.indentedblock {margin-right: 0em}
  30. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  31. blockquote.smallquotation {font-size: smaller}
  32. div.display {margin-left: 3.2em}
  33. div.example {margin-left: 3.2em}
  34. div.lisp {margin-left: 3.2em}
  35. div.smalldisplay {margin-left: 3.2em}
  36. div.smallexample {margin-left: 3.2em}
  37. div.smalllisp {margin-left: 3.2em}
  38. kbd {font-style: oblique}
  39. pre.display {font-family: inherit}
  40. pre.format {font-family: inherit}
  41. pre.menu-comment {font-family: serif}
  42. pre.menu-preformatted {font-family: serif}
  43. pre.smalldisplay {font-family: inherit; font-size: smaller}
  44. pre.smallexample {font-size: smaller}
  45. pre.smallformat {font-family: inherit; font-size: smaller}
  46. pre.smalllisp {font-size: smaller}
  47. span.nolinebreak {white-space: nowrap}
  48. span.roman {font-family: initial; font-weight: normal}
  49. span.sansserif {font-family: sans-serif; font-weight: normal}
  50. ul.no-bullet {list-style: none}
  51. -->
  52. </style>
  53. </head>
  54. <body lang="en">
  55. <a name="Target-Selection"></a>
  56. <div class="header">
  57. <p>
  58. Next: <a href="Architecture-Selection.html#Architecture-Selection" accesskey="n" rel="next">Architecture Selection</a>, Up: <a href="Selecting-the-Target-System.html#Selecting-the-Target-System" accesskey="u" rel="up">Selecting the Target System</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Binutils-Index.html#Binutils-Index" title="Index" rel="index">Index</a>]</p>
  59. </div>
  60. <hr>
  61. <a name="Target-Selection-1"></a>
  62. <h3 class="section">17.1 Target Selection</h3>
  63. <p>A <em>target</em> is an object file format. A given target may be
  64. supported for multiple architectures (see <a href="Architecture-Selection.html#Architecture-Selection">Architecture Selection</a>).
  65. A target selection may also have variations for different operating
  66. systems or architectures.
  67. </p>
  68. <p>The command to list valid target values is &lsquo;<samp>objdump -i</samp>&rsquo;
  69. (the first column of output contains the relevant information).
  70. </p>
  71. <p>Some sample values are: &lsquo;<samp>a.out-hp300bsd</samp>&rsquo;, &lsquo;<samp>ecoff-littlemips</samp>&rsquo;,
  72. &lsquo;<samp>a.out-sunos-big</samp>&rsquo;.
  73. </p>
  74. <p>You can also specify a target using a configuration triplet. This is
  75. the same sort of name that is passed to <samp>configure</samp> to specify a
  76. target. When you use a configuration triplet as an argument, it must be
  77. fully canonicalized. You can see the canonical version of a triplet by
  78. running the shell script <samp>config.sub</samp> which is included with the
  79. sources.
  80. </p>
  81. <p>Some sample configuration triplets are: &lsquo;<samp>m68k-hp-bsd</samp>&rsquo;,
  82. &lsquo;<samp>mips-dec-ultrix</samp>&rsquo;, &lsquo;<samp>sparc-sun-sunos</samp>&rsquo;.
  83. </p>
  84. <a name="objdump-Target"></a>
  85. <h4 class="subheading"><code>objdump</code> Target</h4>
  86. <p>Ways to specify:
  87. </p>
  88. <ol>
  89. <li> command-line option: <samp>-b</samp> or <samp>--target</samp>
  90. </li><li> environment variable <code>GNUTARGET</code>
  91. </li><li> deduced from the input file
  92. </li></ol>
  93. <a name="objcopy-and-strip-Input-Target"></a>
  94. <h4 class="subheading"><code>objcopy</code> and <code>strip</code> Input Target</h4>
  95. <p>Ways to specify:
  96. </p>
  97. <ol>
  98. <li> command-line options: <samp>-I</samp> or <samp>--input-target</samp>, or <samp>-F</samp> or <samp>--target</samp>
  99. </li><li> environment variable <code>GNUTARGET</code>
  100. </li><li> deduced from the input file
  101. </li></ol>
  102. <a name="objcopy-and-strip-Output-Target"></a>
  103. <h4 class="subheading"><code>objcopy</code> and <code>strip</code> Output Target</h4>
  104. <p>Ways to specify:
  105. </p>
  106. <ol>
  107. <li> command-line options: <samp>-O</samp> or <samp>--output-target</samp>, or <samp>-F</samp> or <samp>--target</samp>
  108. </li><li> the input target (see &ldquo;<code>objcopy</code> and <code>strip</code> Input Target&rdquo; above)
  109. </li><li> environment variable <code>GNUTARGET</code>
  110. </li><li> deduced from the input file
  111. </li></ol>
  112. <a name="nm_002c-size_002c-and-strings-Target"></a>
  113. <h4 class="subheading"><code>nm</code>, <code>size</code>, and <code>strings</code> Target</h4>
  114. <p>Ways to specify:
  115. </p>
  116. <ol>
  117. <li> command-line option: <samp>--target</samp>
  118. </li><li> environment variable <code>GNUTARGET</code>
  119. </li><li> deduced from the input file
  120. </li></ol>
  121. <hr>
  122. <div class="header">
  123. <p>
  124. Next: <a href="Architecture-Selection.html#Architecture-Selection" accesskey="n" rel="next">Architecture Selection</a>, Up: <a href="Selecting-the-Target-System.html#Selecting-the-Target-System" accesskey="u" rel="up">Selecting the Target System</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Binutils-Index.html#Binutils-Index" title="Index" rel="index">Index</a>]</p>
  125. </div>
  126. </body>
  127. </html>