Properly report loading plugin error.
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 20 Nov 2010 17:32:07 +0000 (17:32 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 20 Nov 2010 17:32:07 +0000 (17:32 +0000)
2010-11-20  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12247
* lexsup.c (parse_args): Properly report loading plugin error.

ld/ChangeLog
ld/lexsup.c

index 654f94dc1baefbdf9508ebee11d2928cc631c6df..9b8826c59650eb3bed71f5233eeb81cc309d5168 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/12247
+       * lexsup.c (parse_args): Properly report loading plugin error.
+
 2010-11-19  Dave Korn  <dave.korn.cygwin@gmail.com>
 
        * plugin.c (is_visible_from_outside): New function.
index 39ca32683b1244dcce84f03c39a1102769fcbbe5..b6274f89217df3f1da3d8f922da381e33f9d4035 100644 (file)
@@ -1056,7 +1056,8 @@ parse_args (unsigned argc, char **argv)
 #ifdef ENABLE_PLUGINS
        case OPTION_PLUGIN:
          if (plugin_opt_plugin (optarg))
-           einfo(_("%P%F: bad -plugin option\n"));
+           einfo (_("%P%F: %s: error loading plugin\n"),
+                  plugin_error_plugin ());
          break;
        case OPTION_PLUGIN_OPT:
          if (plugin_opt_plugin_arg (optarg))