From f9982339c9d56624fd9da4ded33a08272ef9b1cc Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 20 Nov 2010 17:32:07 +0000 Subject: Properly report loading plugin error. 2010-11-20 H.J. Lu PR ld/12247 * lexsup.c (parse_args): Properly report loading plugin error. --- ld/ChangeLog | 5 +++++ ld/lexsup.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 654f94d..9b8826c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2010-11-20 H.J. Lu + + PR ld/12247 + * lexsup.c (parse_args): Properly report loading plugin error. + 2010-11-19 Dave Korn * plugin.c (is_visible_from_outside): New function. diff --git a/ld/lexsup.c b/ld/lexsup.c index 39ca326..b6274f8 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)) -- cgit v1.1