diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-07-04 18:52:27 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-07-04 18:52:27 +0000 |
commit | 9135e5f83be3f294a82e526a6c18388057c1cac7 (patch) | |
tree | 017c83460200014824fd3569fb7fba0e7a0784cb /binutils/strip.1 | |
parent | e51007432078059411a103988045cb482639592b (diff) | |
download | gdb-9135e5f83be3f294a82e526a6c18388057c1cac7.zip gdb-9135e5f83be3f294a82e526a6c18388057c1cac7.tar.gz gdb-9135e5f83be3f294a82e526a6c18388057c1cac7.tar.bz2 |
* objcopy.c (enum strip_action): Define strip_unneeded.
(OPTION_STRIP_UNNEEDED): Define.
(strip_options): Add "strip-unneeded".
(copy_options): Likewise.
(copy_usage): Mention --strip-unneeded.
(strip_usage): Likewise.
(is_strip_section): Strip debugging sections if strip_unneeded.
(filter_symbols): If strip_unneeded, only keep BSF_KEEP symbols.
(copy_object): If strip_all, discard symbols without checking
discard_locals.
(copy_object): Call filter_symbols if strip_unneeded.
(setup_section): Strip debugging sections if strip_unneeded.
(copy_section): Likewise.
(strip_main): Handle OPTION_STRIP_UNNEEDED.
(copy_main): Likewise.
* binutils.texi, objcopy.1, strip.1: Document --strip-unneeded.
PR 6684.
Diffstat (limited to 'binutils/strip.1')
-rw-r--r-- | binutils/strip.1 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils/strip.1 b/binutils/strip.1 index 62a3abf..c021a83 100644 --- a/binutils/strip.1 +++ b/binutils/strip.1 @@ -21,6 +21,7 @@ strip \- Discard symbols from object files. .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 "\|]" @@ -94,6 +95,10 @@ Remove all symbols. Remove debugging symbols only. .TP +.B \-\-strip\-unneeded +Strip all symbols that are not needed for relocation processing. + +.TP .B \-N \fIsymbolname\fR .TP .B \-\-strip\-symbol=\fIsymbolname |