eae0423857
aspects of the target for each program. * objdump.c (long_options, usage): Add long equivalents for all remaining short options that lacked them. * binutils.texi objdump.1: Document them. * size.c (usage): Tweak usage message. * size.1: Add missing `=' in examples. * binutils.texi strip.1 objcopy.1 nlmconv.1 objcopy.c nlmconv.c: Use "--target=bfdname" as the option to select the BFD target, like nm and size already do. Reserve "--format=format" for textual output selection options, but for now keep old option names as obsolete for backward compatibility. * strings.c (main, strings_object_file, usage): Add --target option. * binutils.texi strings.1: Document it.
132 lines
3.0 KiB
Groff
132 lines
3.0 KiB
Groff
.\" Copyright (c) 1991 Free Software Foundation
|
|
.\" See section COPYING for conditions for redistribution
|
|
.TH strip 1 "5 November 1991" "cygnus support" "GNU Development Tools"
|
|
.de BP
|
|
.sp
|
|
.ti \-.2i
|
|
\(**
|
|
..
|
|
|
|
.SH NAME
|
|
strip \- Discard symbols from object files.
|
|
|
|
.SH SYNOPSIS
|
|
.B strip
|
|
.RB "[\|" "\-F \fIbfdname\fP" | \-\-target=\fIbfdname\fP "\|]"
|
|
.RB "[\|" "\-I \fIbfdname\fP" | \-\-input\-target=\fIbfdname\fP "\|]"
|
|
.RB "[\|" "\-O \fIbfdname\fP" | \-\-output\-target=\fIbfdname\fP "\|]"
|
|
.RB "[\|" \-s | \-\-strip\-all "\|]"
|
|
.RB "[\|" \-S | -g | \-\-strip\-debug "\|]"
|
|
.RB "[\|" \-x | \-\-discard\-all "\|]"
|
|
.RB "[\|" \-X | \-\-discard\-locals "\|]"
|
|
.RB "[\|" \-v | \-\-verbose "\|]"
|
|
.RB "[\|" \-V | \-\-version "\|]"
|
|
.RB "[\|" \-V | \-\-help "\|]"
|
|
.I objfile\c
|
|
\&.\|.\|.
|
|
|
|
.SH DESCRIPTION
|
|
GNU
|
|
.B strip
|
|
discards 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 strip
|
|
modifies 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 object
|
|
code format \fIbfdname\fP, and rewrite it in the same format.
|
|
|
|
.TP
|
|
.B \-\-help
|
|
Show a summary of the options to
|
|
.B strip
|
|
and exit.
|
|
|
|
.TP
|
|
.B "\-I \fIbfdname
|
|
.TP
|
|
.B "\-\-input\-target=\fIbfdname"
|
|
Treat the original \fIobjfile\fP as a file with the object
|
|
code 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 \-s
|
|
.TP
|
|
.B \-\-strip\-all
|
|
Remove all symbols.
|
|
|
|
.TP
|
|
.B \-S
|
|
.TP
|
|
.B -g
|
|
.TP
|
|
.B \-\-strip\-debug
|
|
Remove debugging symbols only.
|
|
|
|
.TP
|
|
.B \-x
|
|
.TP
|
|
.B \-\-discard\-all
|
|
Remove non-global symbols.
|
|
|
|
.TP
|
|
.B "\-X \-\-discard\-locals"
|
|
Remove compiler-generated local symbols.
|
|
(These usually start with ``L'' or ``.''.)
|
|
|
|
.TP
|
|
.B \-v
|
|
.TP
|
|
.B \-\-verbose
|
|
Verbose output: list all object files modified. In the case of
|
|
archives,
|
|
.B "strip \-V"
|
|
lists all members of the archive.
|
|
|
|
.TP
|
|
.B \-V
|
|
.TP
|
|
.B \-\-version
|
|
Show 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 COPYING
|
|
Copyright (c) 1991 Free Software Foundation, Inc.
|
|
.PP
|
|
Permission is granted to make and distribute verbatim copies of
|
|
this manual provided the copyright notice and this permission notice
|
|
are preserved on all copies.
|
|
.PP
|
|
Permission is granted to copy and distribute modified versions of this
|
|
manual under the conditions for verbatim copying, provided that the
|
|
entire resulting derived work is distributed under the terms of a
|
|
permission notice identical to this one.
|
|
.PP
|
|
Permission is granted to copy and distribute translations of this
|
|
manual into another language, under the above conditions for modified
|
|
versions, except that this permission notice may be included in
|
|
translations approved by the Free Software Foundation instead of in
|
|
the original English.
|