Improves the warning message produyced by objdump when it cannot load a section.
authorNick Clifton <nickc@redhat.com>
Tue, 24 Feb 2015 11:10:07 +0000 (11:10 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 24 Feb 2015 11:10:07 +0000 (11:10 +0000)
* objdump.c (dump_section): Extend the warning message displayed
when a section cannot be loaded.

binutils/ChangeLog
binutils/objdump.c

index 20abfe6dc839e0126f357418690bd06fa9cffbe9..1128b4a6e178d7a0da4c1039eba79760f778ab70 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-24  Nick Clifton  <nickc@redhat.com>
+
+       * objdump.c (dump_section): Extend the warning message displayed
+       when a section cannot be loaded.
+
 2015-02-21  Mike Frysinger  <vapier@gentoo.org>
 
        * readelf.c (process_program_headers): Add newline to warning
index 98e4d86f69b4377314cce77ba304b20b5e6f9da3..f690293d58c8a5f4d0040c995458ac19a3870b92 100644 (file)
@@ -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;
     }