diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-26 22:48:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-26 22:48:08 +0000 |
commit | a5dc07065554d074ae0452b388cd9c80b2bc6504 (patch) | |
tree | ce2d8d5be0590dbf264053db8996e684b2fd26db /gold/dynobj.cc | |
parent | 5daa78cc6fc04e0367c11459bb2ae0531c8732ac (diff) | |
download | gdb-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.cc | 8 |
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); |