summaryrefslogtreecommitdiff
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)
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 3c7cf288c4..337469a4ba 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.