aboutsummaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc
index 73da963..671f3d5 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -1209,4 +1209,15 @@ Command_line::process(int argc, const char** argv)
this->options_.finalize();
}
+// Finalize the version script options and return them.
+
+const Version_script_info&
+Command_line::version_script()
+{
+ this->options_.finalize_dynamic_list();
+ Version_script_info* vsi = this->script_options_.version_script_info();
+ vsi->finalize();
+ return *vsi;
+}
+
} // End namespace gold.