Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

vor 3 Jahren
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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>ranlib (GNU Binary Utilities)</title>
  15. <meta name="description" content="ranlib (GNU Binary Utilities)">
  16. <meta name="keywords" content="ranlib (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="index.html#Top" rel="up" title="Top">
  24. <link href="size.html#size" rel="next" title="size">
  25. <link href="objdump.html#objdump" rel="prev" title="objdump">
  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="ranlib"></a>
  56. <div class="header">
  57. <p>
  58. Next: <a href="size.html#size" accesskey="n" rel="next">size</a>, Previous: <a href="objdump.html#objdump" accesskey="p" rel="prev">objdump</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</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="ranlib-1"></a>
  62. <h2 class="chapter">5 ranlib</h2>
  63. <a name="index-ranlib-1"></a>
  64. <a name="index-archive-contents"></a>
  65. <a name="index-symbol-index-1"></a>
  66. <div class="smallexample">
  67. <pre class="smallexample">ranlib [<samp>--plugin</samp> <var>name</var>] [<samp>-DhHvVt</samp>] <var>archive</var>
  68. </pre></div>
  69. <p><code>ranlib</code> generates an index to the contents of an archive and
  70. stores it in the archive. The index lists each symbol defined by a
  71. member of an archive that is a relocatable object file.
  72. </p>
  73. <p>You may use &lsquo;<samp>nm -s</samp>&rsquo; or &lsquo;<samp>nm --print-armap</samp>&rsquo; to list this index.
  74. </p>
  75. <p>An archive with such an index speeds up linking to the library and
  76. allows routines in the library to call each other without regard to
  77. their placement in the archive.
  78. </p>
  79. <p>The <small>GNU</small> <code>ranlib</code> program is another form of <small>GNU</small> <code>ar</code>; running
  80. <code>ranlib</code> is completely equivalent to executing &lsquo;<samp>ar -s</samp>&rsquo;.
  81. See <a href="ar.html#ar">ar</a>.
  82. </p>
  83. <dl compact="compact">
  84. <dt><code>-h</code></dt>
  85. <dt><code>-H</code></dt>
  86. <dt><code>--help</code></dt>
  87. <dd><p>Show usage information for <code>ranlib</code>.
  88. </p>
  89. </dd>
  90. <dt><code>-v</code></dt>
  91. <dt><code>-V</code></dt>
  92. <dt><code>--version</code></dt>
  93. <dd><p>Show the version number of <code>ranlib</code>.
  94. </p>
  95. </dd>
  96. <dt><code>-D</code></dt>
  97. <dd><a name="index-deterministic-archives-4"></a>
  98. <a name="index-_002d_002denable_002ddeterministic_002darchives-4"></a>
  99. <p>Operate in <em>deterministic</em> mode. The symbol map archive member&rsquo;s
  100. header will show zero for the UID, GID, and timestamp. When this
  101. option is used, multiple runs will produce identical output files.
  102. </p>
  103. <p>If <samp>binutils</samp> was configured with
  104. <samp>--enable-deterministic-archives</samp>, then this mode is on by
  105. default. It can be disabled with the &lsquo;<samp>-U</samp>&rsquo; option, described
  106. below.
  107. </p>
  108. </dd>
  109. <dt><code>-t</code></dt>
  110. <dd><p>Update the timestamp of the symbol map of an archive.
  111. </p>
  112. </dd>
  113. <dt><code>-U</code></dt>
  114. <dd><a name="index-deterministic-archives-5"></a>
  115. <a name="index-_002d_002denable_002ddeterministic_002darchives-5"></a>
  116. <p>Do <em>not</em> operate in <em>deterministic</em> mode. This is the
  117. inverse of the &lsquo;<samp>-D</samp>&rsquo; option, above: the archive index will get
  118. actual UID, GID, timestamp, and file mode values.
  119. </p>
  120. <p>If <samp>binutils</samp> was configured <em>without</em>
  121. <samp>--enable-deterministic-archives</samp>, then this mode is on by
  122. default.
  123. </p>
  124. </dd>
  125. </dl>
  126. <hr>
  127. <div class="header">
  128. <p>
  129. Next: <a href="size.html#size" accesskey="n" rel="next">size</a>, Previous: <a href="objdump.html#objdump" accesskey="p" rel="prev">objdump</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</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>
  130. </div>
  131. </body>
  132. </html>