aboutsummaryrefslogtreecommitdiff
path: root/gold/script.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-07 05:45:07 +0000
committerIan Lance Taylor <iant@google.com>2008-02-07 05:45:07 +0000
commit1ef1f3d387940683bcba12c0bee8c5adfdef4bc7 (patch)
tree9868865fdd392b1acb03a2de230185da323bdef8 /gold/script.cc
parent5fe2a0f55b19713f5cfb423687ce51291c62d8d8 (diff)
downloadgdb-1ef1f3d387940683bcba12c0bee8c5adfdef4bc7.zip
gdb-1ef1f3d387940683bcba12c0bee8c5adfdef4bc7.tar.gz
gdb-1ef1f3d387940683bcba12c0bee8c5adfdef4bc7.tar.bz2
Ignore version scripts for relocatable links.
Diffstat (limited to 'gold/script.cc')
-rw-r--r--gold/script.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/script.cc b/gold/script.cc
index 7cf3c7e..fc510a5 100644
--- a/gold/script.cc
+++ b/gold/script.cc
@@ -1739,12 +1739,21 @@ struct Version_tree {
Version_script_info::~Version_script_info()
{
+ this->clear();
+}
+
+void
+Version_script_info::clear()
+{
for (size_t k = 0; k < dependency_lists_.size(); ++k)
delete dependency_lists_[k];
+ this->dependency_lists_.clear();
for (size_t k = 0; k < version_trees_.size(); ++k)
delete version_trees_[k];
+ this->version_trees_.clear();
for (size_t k = 0; k < expression_lists_.size(); ++k)
delete expression_lists_[k];
+ this->expression_lists_.clear();
}
std::vector<std::string>