aboutsummaryrefslogtreecommitdiff
path: root/gold/parameters.cc
diff options
context:
space:
mode:
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.