* bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
commitb4e7057c60e17300939dfbe0c0c47995dd209d58
authorAlan Modra <amodra@bigpond.net.au>
Fri, 17 Aug 2001 03:19:01 +0000 (17 03:19 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Fri, 17 Aug 2001 03:19:01 +0000 (17 03:19 +0000)
treed379c80f07868c414c29d497f620686a5d5108a1
parentd21b1b56cd08c433283b42d233e6a1d05f139866
* bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
(bfd_errmsgs): Add corresponding message.
* archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
finding an archive that contains different format object files.
Return bfd_error_wrong_object_format for this case.
* format.c: Formatting fixes.  s/CONST/const/.
(bfd_check_format_matches): Accept archives that give
bfd_error_wrong_object_format if no full match is found.  Tidy
code handling matching_vector.  Don't return a pointer to freed
memory in `matching'.  Handle ambiguous matches as for partial
archive matches.
* bfd-in2.h: Regenerate.
bfd/ChangeLog
bfd/archive.c
bfd/bfd-in2.h
bfd/bfd.c
bfd/format.c