aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.cc
diff options
context:
space:
mode:
authorKris Van Hees <kris.van.hees@oracle.com>2008-08-28 14:51:04 +0000
committerKris Van Hees <kris.van.hees@oracle.com>2008-08-28 14:51:04 +0000
commitd7ab2a4705e7ca4df87807aaa6c89810ae559034 (patch)
tree37b67cd32a57d10ee87d1e897e66c54431baf554 /gold/symtab.cc
parent1ca35711f453e9a18d2a23795fc4305ace8eb1d4 (diff)
downloadgdb-d7ab2a4705e7ca4df87807aaa6c89810ae559034.zip
gdb-d7ab2a4705e7ca4df87807aaa6c89810ae559034.tar.gz
gdb-d7ab2a4705e7ca4df87807aaa6c89810ae559034.tar.bz2
2008-08-28 Kris Van Hees <kris.van.hees@oracle.com>
PR gold/6858 * options.cc (General_options::finalize): Allow undefined symbols in shlibs if linking -shared. PR gold/6859 * symtab.cc (Symbol::init_base_undefined): Mark explicitly undefined symbols as not needing a dynsym entry.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r--gold/symtab.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc
index c8a5037..37f7d35 100644
--- a/gold/symtab.cc
+++ b/gold/symtab.cc
@@ -174,6 +174,7 @@ Symbol::init_base_undefined(const char* name, const char* version,
elfcpp::STV visibility, unsigned char nonvis)
{
this->init_fields(name, version, type, binding, visibility, nonvis);
+ this->dynsym_index_ = -1U;
this->source_ = IS_UNDEFINED;
this->in_reg_ = true;
}