aboutsummaryrefslogtreecommitdiff
path: root/gold/dynobj.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-21 23:31:19 +0000
committerIan Lance Taylor <iant@google.com>2007-12-21 23:31:19 +0000
commit99f8facac923848a9496cc34235b608e05a7f160 (patch)
treed35f563ca6e357ff8ff87d3d3e45c2098b702f46 /gold/dynobj.cc
parentdc96b90a103d5363c3bb298178b6ae3c5124aa19 (diff)
downloadgdb-99f8facac923848a9496cc34235b608e05a7f160.zip
gdb-99f8facac923848a9496cc34235b608e05a7f160.tar.gz
gdb-99f8facac923848a9496cc34235b608e05a7f160.tar.bz2
From Cary Coutant: Fix handling of versioned symbols, add some tests.
Diffstat (limited to 'gold/dynobj.cc')
-rw-r--r--gold/dynobj.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/dynobj.cc b/gold/dynobj.cc
index 18ae92c..7e61007 100644
--- a/gold/dynobj.cc
+++ b/gold/dynobj.cc
@@ -1296,6 +1296,7 @@ Versions::add_def(const Symbol* sym, const char* version,
// We have now seen a symbol in this version, so it is not
// weak.
+ gold_assert(vb != NULL);
vb->clear_weak();
// FIXME: When we support version scripts, we will need to