summaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-02-24 11:10:07 +0000
committerNick Clifton <nickc@redhat.com>2015-02-24 11:10:07 +0000
commit0821d5b14efc2fb0c929ba077855cbc5e7a0932a (patch)
tree1fae86506decca9e4e415a988403b988df5f99ad /binutils/objdump.c
parent10d602c7f9c043a149741acaffb5bbd32f9bff6f (diff)
Improves the warning message produyced by objdump when it cannot load a section.
* objdump.c (dump_section): Extend the warning message displayed when a section cannot be loaded.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 98e4d86f69..f690293d58 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;
}