📄 strip.1
字号:
.\" Copyright (c) 1991, 92, 93, 94, 95, 96, 97, 1998, 2000 Free Software Foundation.\" See section COPYING for conditions for redistribution.TH strip 1 "5 November 1991" "Free Software Foundation" "GNU Development Tools".de BP.sp.ti \-.2i\(**...SH NAMEstrip \- Discard symbols from object files..SH SYNOPSIS.hy 0.na.TP.B strip.RB "[\|" \-F\ \fIbfdname\fR\ |\ \fB\-\-target=\fIbfdname\fP "\|]".RB "[\|" \-I\ \fIbfdname\fR\ |\ \fB\-\-input\-target=\fIbfdname\fP "\|]".RB "[\|" \-O\ \fIbfdname\fR\ |\ \fB\-\-output\-target=\fIbfdname\fP "\|]".RB "[\|" \-R\ \fIsectionname\fR\ |\ \fB\-\-remove\-section=\fIsectionname\fP "\|]".RB "[\|" \-s\fR\ |\ \fB\-\-strip\-all "\|]".RB "[\|" \-S\fR\ |\ \fB\-g\fR\ |\ \fB\-\-strip\-debug "\|]".RB "[\|" \-\-strip\-unneeded\fR "\|]".RB "[\|" \-x\fR\ |\ \fB\-\-discard\-all "\|]".RB "[\|" \-X\fR\ |\ \fB\-\-discard\-locals "\|]".RB "[\|" \-K\ \fIsymbolname\fR\ |\ \fB\-\-keep\-symbol=\fIsymbolname\fR "\|]" .RB "[\|" \-N\ \fIsymbolname\fR\ |\ \fB\-\-strip\-symbol=\fIsymbolname\fR "\|]".RB "[\|" \-o\ \fIfile\fR "\|]".RB "[\|" \-p\fR\ |\ \fB\-\-preserve\-dates "\|]".RB "[\|" \-v\fR\ |\ \fB\-\-verbose "\|]".RB "[\|" \-V\fR\ |\ \fB\-\-version "\|]".RB "[\|" \-V\fR\ |\ \fB\-\-help "\|]".I objfile\c\&.\|.\|..SH DESCRIPTIONGNU.B stripdiscards all symbols from the object files.IR objfile .The list of object files may include archives.At least one object file must be given..P.B stripmodifies the files named in its argument,rather than writing modified copies under different names..SH OPTIONS.TP.B "\-F \fIbfdname".TP.B "\-\-target=\fIbfdname"Treat the original \fIobjfile\fP as a file with the objectcode format \fIbfdname\fP, and rewrite it in the same format..TP.B \-\-helpShow a summary of the options to.B stripand exit..TP.B "\-I \fIbfdname.TP.B "\-\-input\-target=\fIbfdname"Treat the original \fIobjfile\fP as a file with the objectcode format \fIbfdname\fP..TP.B "\-O \fIbfdname\fP".TP.B "\-\-output\-target=\fIbfdname"Replace \fIobjfile\fP with a file in the output format \fIbfdname\fP..TP.B "\-R \fIsectionname\fP".TP.B "\-\-remove\-section=\fIsectionname"Remove the named section from the file. This option may be given morethan once. Note that using this option inappropriately may make theobject file unusable..TP.B \-s.TP.B \-\-strip\-allRemove all symbols..TP.B \-S.TP.B \-g.TP.B \-\-strip\-debugRemove debugging symbols only..TP.B \-\-strip\-unneededStrip all symbols that are not needed for relocation processing..TP.B \-N \fIsymbolname\fR.TP.B \-\-strip\-symbol=\fIsymbolnameRemove symbol \fIsymbolname\fP from the source file. This optionmay be given more than once, and may be combined with other stripoptions..TP.B \-o \fIfile\fRPut the stripped output in \fIfile\fR, rather than replacing theexisting file. When this argument is used, only one \fIobjfile\fRargument may be specified..TP.B \-p.TP.B \-\-preserve-datesPreserve the access and modification dates of the file..TP.B \-x.TP.B \-\-discard\-allRemove non-global symbols..TP.B \-X.TP.B \-\-discard\-localsRemove compiler-generated local symbols.(These usually start with ``L'' or ``.''.).TP.B \-K \fIsymbolname\fR, \fB\-\-keep\-symbol=\fIsymbolnameCopy only symbol \fIsymbolname\fP from the source file. This optionmay be given more than once..TP.B \-N \fIsymbolname\fR, \fB\-\-strip\-symbol=\fIsymbolnameDo not copy symbol \fIsymbolname\fP from the source file. This optionmay be given more than once, and may be combined with strip optionsother than \fB\-K\fR..TP.B \-v.TP.B \-\-verboseVerbose output: list all object files modified. In the case ofarchives,.B "strip \-v"lists all members of the archive..TP.B \-V.TP.B \-\-versionShow the version number for \fBstrip\fP and exit..SH "SEE ALSO".RB "`\|" binutils "\|'" entry in .BR info ;.IR "The GNU Binary Utilities" ,Roland H. Pesch (October 1991)..SH COPYINGCopyright (c) 1991, 2000 Free Software Foundation, Inc..PPThis document is distributed under the terms of the GNU FreeDocumentation License, version 1.1. That license is described in thesources for this manual page, but it is not displayed here in order tomake this manual more consise. Copies of this license can also beobtained from: http://www.gnu.org/copyleft/.\" .SH GNU Free Documentation License\" Version 1.1, March 2000\" Copyright (C) 2000 Free Software Foundation, Inc.\" 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA \" Everyone is permitted to copy and distribute verbatim\" copies of this license document, but changing it is\" not allowed.\" .PP\" 0. PREAMBLE\" .PP\" The purpose of this License is to make a manual, textbook, or other\" written document "free" in the sense of freedom: to assure everyone\" the effective freedom to copy and redistribute it, with or without\" modifying it, either commercially or noncommercially. Secondarily,\" this License preserves for the author and publisher a way to get\" credit for their work, while not being considered responsible for\" modifications made by others.\" .PP\" This License is a kind of "copyleft", which means that derivative\" works of the document must themselves be free in the same sense. It\" complements the GNU General Public License, which is a copyleft\" license designed for free software.\" .PP\" We have designed this License in order to use it for manuals for free\" software, because free software needs free documentation: a free\" program should come with manuals providing the same freedoms that the\" software does. But this License is not limited to software manuals;\" it can be used for any textual work, regardless of subject matter or\" whether it is published as a printed book. We recommend this License\" principally for works whose purpose is instruction or reference.\" .PP\" 1. APPLICABILITY AND DEFINITIONS\" .PP\" This License applies to any manual or other work that contains a\" notice placed by the copyright holder saying it can be distributed\" under the terms of this License. The "Document", below, refers to any\" such manual or work. Any member of the public is a licensee, and is\" addressed as "you".\" .PP\" A "Modified Version" of the Document means any work containing the\" Document or a portion of it, either copied verbatim, or with\" modifications and/or translated into another language.\" .PP\" A "Secondary Section" is a named appendix or a front-matter section of\" the Document that deals exclusively with the relationship of the\" publishers or authors of the Document to the Document's overall subject\" (or to related matters) and contains nothing that could fall directly\" within that overall subject. (For example, if the Document is in part a\" textbook of mathematics, a Secondary Section may not explain any\" mathematics.) The relationship could be a matter of historical\" connection with the subject or with related matters, or of legal,\" commercial, philosophical, ethical or political position regarding\" them.\" .PP\" The "Invariant Sections" are certain Secondary Sections whose titles\" are designated, as being those of Invariant Sections, in the notice\" that says that the Document is released under this License.\" .PP\" The "Cover Texts" are certain short passages of text that are listed,\" as Front-Cover Texts or Back-Cover Texts, in the notice that says that\" the Document is released under this License.\" .PP\" A "Transparent" copy of the Document means a machine-readable copy,\" represented in a format whose specification is available to the\" general public, whose contents can be viewed and edited directly and\" straightforwardly with generic text editors or (for images composed of\" pixels) generic paint programs or (for drawings) some widely available\" drawing editor, and that is suitable for input to text formatters or\" for automatic translation to a variety of formats suitable for input\" to text formatters. A copy made in an otherwise Transparent file\" format whose markup has been designed to thwart or discourage\" subsequent modification by readers is not Transparent. A copy that is\" not "Transparent" is called "Opaque".\" .PP\" Examples of suitable formats for Transparent copies include plain\" ASCII without markup, Texinfo input format, LaTeX input format, SGML\" or XML using a publicly available DTD, and standard-conforming simple\" HTML designed for human modification. Opaque formats include\" PostScript, PDF, proprietary formats that can be read and edited only\" by proprietary word processors, SGML or XML for which the DTD and/or\" processing tools are not generally available, and the\" machine-generated HTML produced by some word processors for output\" purposes only.\" .PP\" The "Title Page" means, for a printed book, the title page itself,\" plus such following pages as are needed to hold, legibly, the material\" this License requires to appear in the title page. For works in\" formats which do not have any title page as such, "Title Page" means\" the text near the most prominent appearance of the work's title,\" preceding the beginning of the body of the text.\" .PP\" 2. VERBATIM COPYING\" .PP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -