📄 strip.html
字号:
<html lang="en">
<head>
<title>GNU Binary Utilities</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GNU Binary Utilities">
<meta name="generator" content="makeinfo 4.3">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">
</head>
<body>
<div class="node">
<p>
Node:<a name="strip">strip</a>,
Next:<a rel="next" accesskey="n" href="c--filt.html#c++filt">c++filt</a>,
Previous:<a rel="previous" accesskey="p" href="strings.html#strings">strings</a>,
Up:<a rel="up" accesskey="u" href="index.html#Top">Top</a>
<hr><br>
</div>
<h2 class="chapter">strip</h2>
<pre class="smallexample"> strip [<code>-F</code> <var>bfdname</var> |<code>--target=</code><var>bfdname</var> ]
[<code>-I</code> <var>bfdname</var> |<code>--input-target=</code><var>bfdname</var> ]
[<code>-O</code> <var>bfdname</var> |<code>--output-target=</code><var>bfdname</var> ]
[<code>-s</code>|<code>--strip-all</code>] [<code>-S</code>|<code>-g</code>|<code>-d</code>|<code>--strip-debug</code>]
[<code>-K</code> <var>symbolname</var> |<code>--keep-symbol=</code><var>symbolname</var> ]
[<code>-N</code> <var>symbolname</var> |<code>--strip-symbol=</code><var>symbolname</var> ]
[<code>-x</code>|<code>--discard-all</code> ] [<code>-X</code> |<code>--discard-locals</code>]
[<code>-R</code> <var>sectionname</var> |<code>--remove-section=</code><var>sectionname</var> ]
[<code>-o</code> <var>file</var> ] [<code>-p</code>|<code>--preserve-dates</code>]
[<code>-v</code> |<code>--verbose</code>] [<code>-V</code>|<code>--version</code>] [<code>--help</code>]
<var>objfile</var>...
</pre>
<p><small>GNU</small> <code>strip</code> discards all symbols from object files
<var>objfile</var>. The list of object files may include archives.
At least one object file must be given.
<p><code>strip</code> modifies the files named in its argument,
rather than writing modified copies under different names.
<dl>
<dt><code>-F </code><var>bfdname</var><code></code>
<dd><dt><code>--target=</code><var>bfdname</var><code></code>
<dd>Treat the original <var>objfile</var> as a file with the object
code format <var>bfdname</var>, and rewrite it in the same format.
See <a href="Target-Selection.html#Target%20Selection">Target Selection</a>, for more information.
<br><dt><code>--help</code>
<dd>Show a summary of the options to <code>strip</code> and exit.
<br><dt><code>-I </code><var>bfdname</var><code></code>
<dd><dt><code>--input-target=</code><var>bfdname</var><code></code>
<dd>Treat the original <var>objfile</var> as a file with the object
code format <var>bfdname</var>.
See <a href="Target-Selection.html#Target%20Selection">Target Selection</a>, for more information.
<br><dt><code>-O </code><var>bfdname</var><code></code>
<dd><dt><code>--output-target=</code><var>bfdname</var><code></code>
<dd>Replace <var>objfile</var> with a file in the output format <var>bfdname</var>.
See <a href="Target-Selection.html#Target%20Selection">Target Selection</a>, for more information.
<br><dt><code>-R </code><var>sectionname</var><code></code>
<dd><dt><code>--remove-section=</code><var>sectionname</var><code></code>
<dd>Remove any section named <var>sectionname</var> from the output file. This
option may be given more than once. Note that using this option
inappropriately may make the output file unusable.
<br><dt><code>-s</code>
<dd><dt><code>--strip-all</code>
<dd>Remove all symbols.
<br><dt><code>-g</code>
<dd><dt><code>-S</code>
<dd><dt><code>-d</code>
<dd><dt><code>--strip-debug</code>
<dd>Remove debugging symbols only.
<br><dt><code>--strip-unneeded</code>
<dd>Remove all symbols that are not needed for relocation processing.
<br><dt><code>-K </code><var>symbolname</var><code></code>
<dd><dt><code>--keep-symbol=</code><var>symbolname</var><code></code>
<dd>Keep only symbol <var>symbolname</var> from the source file. This option may
be given more than once.
<br><dt><code>-N </code><var>symbolname</var><code></code>
<dd><dt><code>--strip-symbol=</code><var>symbolname</var><code></code>
<dd>Remove symbol <var>symbolname</var> from the source file. This option may be
given more than once, and may be combined with strip options other than
<code>-K</code>.
<br><dt><code>-o </code><var>file</var><code></code>
<dd>Put the stripped output in <var>file</var>, rather than replacing the
existing file. When this argument is used, only one <var>objfile</var>
argument may be specified.
<br><dt><code>-p</code>
<dd><dt><code>--preserve-dates</code>
<dd>Preserve the access and modification dates of the file.
<br><dt><code>-x</code>
<dd><dt><code>--discard-all</code>
<dd>Remove non-global symbols.
<br><dt><code>-X</code>
<dd><dt><code>--discard-locals</code>
<dd>Remove compiler-generated local symbols.
(These usually start with <code>L</code> or <code>.</code>.)
<br><dt><code>-V</code>
<dd><dt><code>--version</code>
<dd>Show the version number for <code>strip</code>.
<br><dt><code>-v</code>
<dd><dt><code>--verbose</code>
<dd>Verbose output: list all object files modified. In the case of
archives, <code>strip -v</code> lists all members of the archive.
</dl>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -