Downgrade objdump fatal errors to non-fatal
authorAlan Modra <amodra@gmail.com>
Mon, 6 Mar 2023 00:13:08 +0000 (10:43 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 6 Mar 2023 02:41:22 +0000 (13:11 +1030)
commitffdfc835ddd5e3eb7254aef9f003020d968be5b7
tree38443f10035a45d9bdb5662a671bb5601f3b2703
parent5db0367e1b0bcbe22b987501ae1c77d7e890e6c8
Downgrade objdump fatal errors to non-fatal

* objdump.c (slurp_symtab): Replace bfd_fatal calls with calls
to my_bfd_nonfatal.
(slurp_dynamic_symtab, disassemble_section): Likewise.
(disassemble_data): Replace fatal call with non_fatal call, and
set exit_status.  Don't error on non-existent dynamic relocs.
Don't call bfd_fatal on bfd_canonicalize_dynamic_reloc error.
(dump_ctf, dump_section_sframe): Replace bfd_fatal calls with
calls to my_bfd_nonfatal and clean up memory.
(dump_relocs_in_section): Don't call bfd_fatal on errors.
(dump_dynamic_relocs): Likewise.
(display_any_bfd): Make archive nesting too depp non_fatal.
binutils/objdump.c