diff options
author | Alan Modra <amodra@gmail.com> | 2019-02-20 12:06:31 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-02-20 13:41:54 +1030 |
commit | 7d272a55caebfc26ab2e15d1e9439bac978b9bb7 (patch) | |
tree | 024a012e779171d97d1e02a6a4a15c286dd30c43 /binutils/objdump.c | |
parent | 6caa91b6e58a563be7eeb2844fd2622158d78354 (diff) | |
download | gdb-7d272a55caebfc26ab2e15d1e9439bac978b9bb7.zip gdb-7d272a55caebfc26ab2e15d1e9439bac978b9bb7.tar.gz gdb-7d272a55caebfc26ab2e15d1e9439bac978b9bb7.tar.bz2 |
PR24233, Out of memory
PR 24233
* objdump.c (dump_bfd_private_header): Print warning if
bfd_print_private_bfd_data returns false.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r-- | binutils/objdump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c index 8725390..7d0c6a4 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -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 |