* Commit: objdump: Improve failed to read section warning message
@ 2015-02-24 12:57 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2015-02-24 12:57 UTC (permalink / raw)
To: binutils
Hi Guys,
Whilst working on another patch, I noticed that the failed-to-read-
a-section warning message produced by objdump is not very helpful. It
does not say which section could not be loaded, nor why. So I am
checking in the patch below to fix this.
Cheers
Nick
binutils/ChangeLog
2015-02-24 Nick Clifton <nickc@redhat.com>
* objdump.c (dump_section): Extend the warning message displayed
when a section cannot be loaded.
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 98e4d86..f690293 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -2800,7 +2800,8 @@ dump_section (bfd *abfd, asection *section, void *dummy ATTRIBUTE_UNUSED)
if (!bfd_get_full_section_contents (abfd, section, &data))
{
- non_fatal (_("Reading section failed"));
+ non_fatal (_("Reading section %s failed because: %s"),
+ section->name, bfd_errmsg (bfd_get_error ()));
return;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-24 11:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-24 12:57 Commit: objdump: Improve failed to read section warning message Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).