bfd_check_format: ignore errors from coff_real_object_p
authorAlan Modra <amodra@gmail.com>
Mon, 6 Jan 2020 09:21:22 +0000 (19:51 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 6 Jan 2020 11:23:51 +0000 (21:53 +1030)
commit49078ece048d0871508218203744f95e68ba5b4a
tree7431f2866ed84e221a3bc5b8536b2dffc4988e72
parentab356be74c0a74d3baf24e24aadfc0a2051a077c
bfd_check_format: ignore errors from coff_real_object_p

Since 1993-11-05 git commit c188b0bec3b, bfd_check_format has failed
if any of the target object_p functions returns false with any error
but bfd_error_wrong_format.  That's just weird.  There is really no
reason why coff_real_object_p should be fixed to only return that
error instead of numerous other possible errors.  Even an out of
memory condition for one target doesn't necessarily mean other targets
can't match, assuming the failing target nicely returns all memory it
might have used.

* format.c (bfd_check_format_matches): Ignore bfd_error on target
match failures.  Don't init to bfd_error_wrong_format before
calling _bfd_check_format.
bfd/ChangeLog
bfd/format.c
This page took 0.024902 seconds and 4 git commands to generate.