aboutsummaryrefslogtreecommitdiff
path: root/gold/dynobj.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-01-24 00:15:00 +0000
committerIan Lance Taylor <iant@google.com>2008-01-24 00:15:00 +0000
commit55a934330a2d2f84e4f972454adda275b02f7aef (patch)
tree042b4651da2f08fc6f83926312362580c224ed24 /gold/dynobj.cc
parent7af3fd65aa8d8eeab9d078b882397e3f152e1762 (diff)
downloadfsf-binutils-gdb-55a934330a2d2f84e4f972454adda275b02f7aef.zip
fsf-binutils-gdb-55a934330a2d2f84e4f972454adda275b02f7aef.tar.gz
fsf-binutils-gdb-55a934330a2d2f84e4f972454adda275b02f7aef.tar.bz2
Originally from Craig Silverstein, with changes: support using a
version script to force symbols to be local.
Diffstat (limited to 'gold/dynobj.cc')
-rw-r--r--gold/dynobj.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/gold/dynobj.cc b/gold/dynobj.cc
index 78594a9..898e755 100644
--- a/gold/dynobj.cc
+++ b/gold/dynobj.cc
@@ -1334,7 +1334,7 @@ Versions::add_def(const Symbol* sym, const char* version,
Version_base* const vbnull = NULL;
std::pair<Version_table::iterator, bool> ins =
this->version_table_.insert(std::make_pair(k, vbnull));
-
+
if (!ins.second)
{
// We already have an entry for this version.
@@ -1344,9 +1344,6 @@ Versions::add_def(const Symbol* sym, const char* version,
// weak.
gold_assert(vb != NULL);
vb->clear_weak();
-
- // FIXME: When we support version scripts, we will need to
- // check whether this symbol should be forced local.
}
else
{