aboutsummaryrefslogtreecommitdiff
path: root/gold/dynobj.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-07-18 06:58:04 +0000
committerIan Lance Taylor <ian@airs.com>2008-07-18 06:58:04 +0000
commitc6e3f6ed8e0a050b7b49c1a82102eae736f595fd (patch)
treeb08ebedd9f2b8ce56a9489f78185df3d2a135e38 /gold/dynobj.cc
parent957ab57169b5f2bc1cd6ebf67ec3775a4d471354 (diff)
downloadgdb-c6e3f6ed8e0a050b7b49c1a82102eae736f595fd.zip
gdb-c6e3f6ed8e0a050b7b49c1a82102eae736f595fd.tar.gz
gdb-c6e3f6ed8e0a050b7b49c1a82102eae736f595fd.tar.bz2
* dynobj.cc (Versions::add_def): If we give an error about a
missing version, go ahead and create the version anyhow.
Diffstat (limited to 'gold/dynobj.cc')
-rw-r--r--gold/dynobj.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/gold/dynobj.cc b/gold/dynobj.cc
index 89186ad..a95787d 100644
--- a/gold/dynobj.cc
+++ b/gold/dynobj.cc
@@ -1388,11 +1388,8 @@ Versions::add_def(const Symbol* sym, const char* version,
// find a definition of a symbol with a version which is not
// in the version script.
if (parameters->options().shared())
- {
- gold_error(_("symbol %s has undefined version %s"),
- sym->demangled_name().c_str(), version);
- return;
- }
+ gold_error(_("symbol %s has undefined version %s"),
+ sym->demangled_name().c_str(), version);
// When creating a regular executable, automatically define
// a new version.