diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-11-20 17:32:06 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-11-20 17:32:06 +0000 |
commit | 2fc6a631a9afcf20dfe10c1c12296830cf27a2bd (patch) | |
tree | 96a616f3787485ed8f66e824ffd93dab8188e552 /ld/lexsup.c | |
parent | 4bff61a62700d4fe4dd1b849b9527daa2033e54d (diff) | |
download | binutils-redhat-2fc6a631a9afcf20dfe10c1c12296830cf27a2bd.tar.gz |
Properly report loading plugin error.
2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
PR ld/12247
* lexsup.c (parse_args): Properly report loading plugin error.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r-- | ld/lexsup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c index 39ca32683b..b6274f8921 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -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)) |