summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-22 20:08:16 +0000
committerIan Lance Taylor <iant@google.com>2007-09-22 20:08:16 +0000
commit4fd26f8d024a2910a17add81c927cfa4f8ef8514 (patch)
treec46468800995886baca369e9e0f1d84637a356d5
parent776e3aff623f9a2d7396bef255628642f746ad8b (diff)
downloadbinutils-redhat-4fd26f8d024a2910a17add81c927cfa4f8ef8514.tar.gz
It's OK to have a version if we have an existing symbol.
-rw-r--r--gold/symtab.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc
index a6e79585a1..09a3b0eb9e 100644
--- a/gold/symtab.cc
+++ b/gold/symtab.cc
@@ -835,7 +835,7 @@ Symbol_table::do_define_in_output_data(
if (sym == NULL)
return NULL;
- gold_assert(version == NULL);
+ gold_assert(version == NULL || oldsym != NULL);
sym->init(name, od, value, symsize, type, binding, visibility, nonvis,
offset_is_from_end);
@@ -918,7 +918,7 @@ Symbol_table::do_define_in_output_segment(
if (sym == NULL)
return NULL;
- gold_assert(version == NULL);
+ gold_assert(version == NULL || oldsym != NULL);
sym->init(name, os, value, symsize, type, binding, visibility, nonvis,
offset_base);
@@ -995,7 +995,7 @@ Symbol_table::do_define_as_constant(
if (sym == NULL)
return NULL;
- gold_assert(version == NULL);
+ gold_assert(version == NULL || oldsym != NULL);
sym->init(name, value, symsize, type, binding, visibility, nonvis);
if (oldsym != NULL