This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Improves the warning message produyced by objdump when it cannot load a section.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0821d5b14efc2fb0c929ba077855cbc5e7a0932a

commit 0821d5b14efc2fb0c929ba077855cbc5e7a0932a
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue Feb 24 11:10:07 2015 +0000

    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.

Diff:
---
 binutils/ChangeLog | 5 +++++
 binutils/objdump.c | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 20abfe6..1128b4a 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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
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;
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]