PR24233, Out of memory
authorAlan Modra <amodra@gmail.com>
Wed, 20 Feb 2019 01:36:31 +0000 (12:06 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 20 Feb 2019 03:11:54 +0000 (13:41 +1030)
PR 24233
* objdump.c (dump_bfd_private_header): Print warning if
bfd_print_private_bfd_data returns false.

binutils/ChangeLog
binutils/objdump.c

index b017f5ec533997090f194e87cc68653f7573a686..ce933babfe16a931e56d1981e0a6a13af25cb525 100644 (file)
@@ -1,3 +1,9 @@
+2019-02-20  Alan Modra  <amodra@gmail.com>
+
+       PR 24233
+       * objdump.c (dump_bfd_private_header): Print warning if
+       bfd_print_private_bfd_data returns false.
+
 2019-02-12  Nick Clifton  <nickc@redhat.com>
 
        PR 23440
index 872539068cab8276db3c043287431cbe5a46f856..7d0c6a4db4477d68654b72084c70a8b737a4b53f 100644 (file)
@@ -3178,7 +3178,9 @@ dump_bfd_header (bfd *abfd)
 static void
 dump_bfd_private_header (bfd *abfd)
 {
-  bfd_print_private_bfd_data (abfd, stdout);
+  if (!bfd_print_private_bfd_data (abfd, stdout))
+    non_fatal (_("warning: private headers incomplete: %s"),
+              bfd_errmsg (bfd_get_error ()));
 }
 
 static void