diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-22 20:08:16 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-22 20:08:16 +0000 |
commit | d4f5281bde13826402380afa522a4da25bb089e5 (patch) | |
tree | 81056651ff09e1ecd2f334156c21d915cacc6ef9 /gold/symtab.cc | |
parent | fe3f5fa8f97cf34afe70a581e1e58fae0bc80e47 (diff) | |
download | fsf-binutils-gdb-d4f5281bde13826402380afa522a4da25bb089e5.zip fsf-binutils-gdb-d4f5281bde13826402380afa522a4da25bb089e5.tar.gz fsf-binutils-gdb-d4f5281bde13826402380afa522a4da25bb089e5.tar.bz2 |
It's OK to have a version if we have an existing symbol.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r-- | gold/symtab.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc index a6e7958..09a3b0e 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 |