From 4802450ac95e6cb976fa8b35f194f91a8a4fd4ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Mon, 28 Jun 2010 21:03:49 +0000 Subject: [PATCH] 2010-06-28 Rafael Espindola * plugin.cc (Plugin::load): Use dlerror. --- gold/ChangeLog | 4 ++++ gold/plugin.cc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index c1f4981ecff..c7f4a5f9bd6 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,7 @@ +2010-06-28 Rafael Espindola + + * plugin.cc (Plugin::load): Use dlerror. + 2010-06-26 Jeffrey Yaskin * symtab.cc (detect_odr_violations): When reporting an ODR diff --git a/gold/plugin.cc b/gold/plugin.cc index c9e55effcb4..ba4bd4c1060 100644 --- a/gold/plugin.cc +++ b/gold/plugin.cc @@ -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; } -- 2.30.2