aboutsummaryrefslogtreecommitdiff
path: root/gold/dynobj.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-26 22:48:08 +0000
committerIan Lance Taylor <iant@google.com>2008-02-26 22:48:08 +0000
commita5dc07065554d074ae0452b388cd9c80b2bc6504 (patch)
treece2d8d5be0590dbf264053db8996e684b2fd26db /gold/dynobj.cc
parent5daa78cc6fc04e0367c11459bb2ae0531c8732ac (diff)
downloadgdb-a5dc07065554d074ae0452b388cd9c80b2bc6504.zip
gdb-a5dc07065554d074ae0452b388cd9c80b2bc6504.tar.gz
gdb-a5dc07065554d074ae0452b388cd9c80b2bc6504.tar.bz2
From Craig Silverstein: rework handling of Script_options.
Diffstat (limited to 'gold/dynobj.cc')
-rw-r--r--gold/dynobj.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gold/dynobj.cc b/gold/dynobj.cc
index 780e0c9..a33707b 100644
--- a/gold/dynobj.cc
+++ b/gold/dynobj.cc
@@ -27,7 +27,6 @@
#include "elfcpp.h"
#include "parameters.h"
-#include "options.h"
#include "script.h"
#include "symtab.h"
#include "dynobj.h"
@@ -1229,9 +1228,10 @@ Verneed::write(const Stringpool* dynpool, bool is_last,
// Versions methods.
-Versions::Versions(const General_options& options, Stringpool* dynpool)
+Versions::Versions(const Version_script_info& version_script,
+ Stringpool* dynpool)
: defs_(), needs_(), version_table_(),
- is_finalized_(false), version_script_(options.version_script())
+ is_finalized_(false), version_script_(version_script)
{
// We always need a base version, so define that first. Nothing
// explicitly declares itself as part of base, so it doesn't need to
@@ -1260,7 +1260,7 @@ Versions::Versions(const General_options& options, Stringpool* dynpool)
true, &version_key);
Verdef* const vd = new Verdef(
version,
- options.version_script().get_dependencies(version),
+ this->version_script_.get_dependencies(version),
false, false, false);
this->defs_.push_back(vd);
Key key(version_key, 0);