From 9e7cb4c359e6a86550bca296db617fb4c8068c1a Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 26 May 2020 14:49:42 +0100 Subject: [PATCH] Extend the error message displayed when a plugin fails to load. * plugin.c (try_load_plugin): Extend error message when a plugin fails to open. --- bfd/ChangeLog | 5 +++++ bfd/plugin.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2da474e02c9..f165b00515e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2020-05-26 Nick Clifton + + * plugin.c (try_load_plugin): Extend error message when a plugin + fails to open. + 2020-05-23 Alan Modra * bfdio.c (bfd_get_file_size): Don't segfault on NULL arch_header. diff --git a/bfd/plugin.c b/bfd/plugin.c index 9439366f4bf..97f1c9c7731 100644 --- a/bfd/plugin.c +++ b/bfd/plugin.c @@ -273,7 +273,8 @@ try_load_plugin (const char *pname, plugin_handle = dlopen (pname, RTLD_NOW); if (!plugin_handle) { - _bfd_error_handler ("%s\n", dlerror ()); + _bfd_error_handler ("Failed to load plugin '%s', reason: %s\n", + pname, dlerror ()); return 0; } -- 2.30.2