aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@codesourcery.com>2014-12-23 20:28:16 +0000
committerAndrew Stubbs <ams@codesourcery.com>2014-12-23 20:28:16 +0000
commit805b1c8bc6cc131266d7db7e03beb43cb25f2e78 (patch)
tree75fdfec7b9f993d968950cd594c4d2e11c4ed202
parent1994afbf19892c9e614a034fbf1a5233e9addce3 (diff)
downloadgdb-805b1c8bc6cc131266d7db7e03beb43cb25f2e78.zip
gdb-805b1c8bc6cc131266d7db7e03beb43cb25f2e78.tar.gz
gdb-805b1c8bc6cc131266d7db7e03beb43cb25f2e78.tar.bz2
Clarify strip docs.
binutils/ * objcopy.c (strip_usage): Reword --remove-section description. * doc/binutils.texi (strip): Likewise.
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/doc/binutils.texi3
-rw-r--r--binutils/objcopy.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 3575d4a..b2bb3f1 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-23 Andrew Stubbs <ams@codesourcery.com>
+
+ * objcopy.c (strip_usage): Reword --remove-section description.
+ * doc/binutils.texi (strip): Likewise.
+
2014-12-23 Nick Clifton <nickc@redhat.com>
* doc/binutils.texi (objdump): Reformat to avoid overlong lines.
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index 5842a91..1ac71fe 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -2891,7 +2891,8 @@ Replace @var{objfile} with a file in the output format @var{bfdname}.
@item -R @var{sectionname}
@itemx --remove-section=@var{sectionname}
-Remove any section named @var{sectionname} from the output file. This
+Remove any section named @var{sectionname} from the output file, in
+addition to whatever sections would otherwise be removed. This
option may be given more than once. Note that using this option
inappropriately may make the output file unusable. The wildcard
character @samp{*} may be given at the end of @var{sectionname}. If
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 07794cb..2e1cb54 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -632,7 +632,7 @@ strip_usage (FILE *stream, int exit_status)
-U --disable-deterministic-archives\n\
Disable -D behavior (default)\n"));
fprintf (stream, _("\
- -R --remove-section=<name> Remove section <name> from the output\n\
+ -R --remove-section=<name> Also remove section <name> from the output\n\
-s --strip-all Remove all symbol and relocation information\n\
-g -S -d --strip-debug Remove all debugging symbols & sections\n\
--strip-dwo Remove all DWO sections\n\