2010-06-28 Rafael Espindola <espindola@google.com>
authorRafael Ávila de Espíndola <respindola@mozilla.com>
Mon, 28 Jun 2010 21:03:49 +0000 (21:03 +0000)
committerRafael Ávila de Espíndola <respindola@mozilla.com>
Mon, 28 Jun 2010 21:03:49 +0000 (21:03 +0000)
* plugin.cc (Plugin::load): Use dlerror.

gold/ChangeLog
gold/plugin.cc

index c1f4981ecff3259243d1e1345e3545bc84582558..c7f4a5f9bd6523944d11c16943a7062700819672 100644 (file)
@@ -1,3 +1,7 @@
+2010-06-28  Rafael Espindola  <espindola@google.com>
+
+       * plugin.cc (Plugin::load): Use dlerror.
+
 2010-06-26  Jeffrey Yaskin  <jyasskin@google.com>
 
        * symtab.cc (detect_odr_violations): When reporting an ODR
index c9e55effcb48a50495fa65775467f4b5fb3827e4..ba4bd4c106001c7625494e0335648df604893f0e 100644 (file)
@@ -106,8 +106,8 @@ Plugin::load()
   this->handle_ = dlopen(this->filename_.c_str(), RTLD_NOW);
   if (this->handle_ == NULL)
     {
-      gold_error(_("%s: could not load plugin library"),
-                 this->filename_.c_str());
+      gold_error(_("%s: could not load plugin library: %s"),
+                 this->filename_.c_str(), dlerror());
       return;
     }