* dynobj.cc (Versions::add_def): If we give an error about a
authorIan Lance Taylor <ian@airs.com>
Fri, 18 Jul 2008 06:58:04 +0000 (06:58 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 18 Jul 2008 06:58:04 +0000 (06:58 +0000)
missing version, go ahead and create the version anyhow.

gold/ChangeLog
gold/dynobj.cc

index 788a9410c8cb7cd9fb4a0c0e9499750a882adf30..16020c861b3e299a1fea11c693fbcd98f79bf73f 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-17  Ian Lance Taylor  <iant@google.com>
+
+       * dynobj.cc (Versions::add_def): If we give an error about a
+       missing version, go ahead and create the version anyhow.
+
 2008-07-10  Ian Lance Taylor  <iant@google.com>
 
        Handle output sections with more than 0x7fffffff bytes.
index 89186adecbc84cfcaf8c2119487a7a824e217a73..a95787d9f5bdfbf7154b108d0e7a566638090573 100644 (file)
@@ -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.
This page took 0.030086 seconds and 4 git commands to generate.