aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-11-15 23:03:45 +0000
committerIan Lance Taylor <iant@google.com>2007-11-15 23:03:45 +0000
commit02d2ba740273e3f539501337eebf0c6007af0b4b (patch)
treed5f227a534ef7accd13c1aff4327c00935b7bbef /gold/options.cc
parentdaily update (diff)
downloadbinutils-gdb-02d2ba740273e3f539501337eebf0c6007af0b4b.tar.gz
binutils-gdb-02d2ba740273e3f539501337eebf0c6007af0b4b.tar.bz2
binutils-gdb-02d2ba740273e3f539501337eebf0c6007af0b4b.zip
From Craig Silverstein: Add --strip-debug-gdb.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc
index 20714359e8a..c962188f1c2 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -402,6 +402,11 @@ options::Command_line_options::options[] =
&General_options::add_to_rpath_link),
GENERAL_NOARG('s', "strip-all", N_("Strip all symbols"), NULL,
TWO_DASHES, &General_options::set_strip_all),
+ GENERAL_NOARG('\0', "strip-debug-gdb",
+ N_("Strip debug symbols that are unused by gdb "
+ "(at least versions <= 6.7)"),
+ NULL, TWO_DASHES, &General_options::set_strip_debug_gdb),
+ // This must come after -Sdebug since it's a prefix of it.
GENERAL_NOARG('S', "strip-debug", N_("Strip debugging information"), NULL,
TWO_DASHES, &General_options::set_strip_debug),
GENERAL_NOARG('\0', "shared", N_("Generate shared library"),