aboutsummaryrefslogtreecommitdiff
path: root/gold/parameters.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-10 19:02:56 +0000
committerIan Lance Taylor <iant@google.com>2007-10-10 19:02:56 +0000
commit9e2dcb779c27737af88468b29aa1d2a15b0b770f (patch)
tree70f6ac5955fb7855d0773850f9763675f0c4a0d4 /gold/parameters.cc
parent7500260a55897928017d06874240074c282dbb4a (diff)
downloadgdb-9e2dcb779c27737af88468b29aa1d2a15b0b770f.zip
gdb-9e2dcb779c27737af88468b29aa1d2a15b0b770f.tar.gz
gdb-9e2dcb779c27737af88468b29aa1d2a15b0b770f.tar.bz2
Implement -s and -S options which strip symbols.
Diffstat (limited to 'gold/parameters.cc')
-rw-r--r--gold/parameters.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/parameters.cc b/gold/parameters.cc
index 3c7cf28..337469a 100644
--- a/gold/parameters.cc
+++ b/gold/parameters.cc
@@ -42,6 +42,13 @@ Parameters::Parameters(const General_options* options)
this->output_file_type_ = OUTPUT_OBJECT;
else
this->output_file_type_ = OUTPUT_EXECUTABLE;
+
+ if (options->strip_all())
+ this->strip_ = STRIP_ALL;
+ else if (options->strip_debug())
+ this->strip_ = STRIP_DEBUG;
+ else
+ this->strip_ = STRIP_NONE;
}
// Set whether we are doing a static link.