diff options
author | 2019-02-20 12:06:31 +1030 | |
---|---|---|
committer | 2019-06-03 07:51:03 +0200 | |
commit | e3b1382e101c55d8c85160b61c1e44e291c1d08f (patch) | |
tree | 2e8a4ea8d3edf23d5a5b5d2095d9120668061423 | |
parent | PR24235, Read memory violation in pei-x86_64.c (diff) | |
download | binutils-gdb-e3b1382e101c55d8c85160b61c1e44e291c1d08f.tar.gz binutils-gdb-e3b1382e101c55d8c85160b61c1e44e291c1d08f.tar.bz2 binutils-gdb-e3b1382e101c55d8c85160b61c1e44e291c1d08f.zip |
PR24233, Out of memory
PR 24233
* objdump.c (dump_bfd_private_header): Print warning if
bfd_print_private_bfd_data returns false.
(cherry picked from commit 7d272a55caebfc26ab2e15d1e9439bac978b9bb7)
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-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 4b98e7b6909..8b586977586 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -3179,7 +3179,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 |