This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: archives with foreign object files
- To: binutils at sourceware dot cygnus dot com
- Subject: Re: archives with foreign object files
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Fri, 17 Aug 2001 12:50:39 +0930
- References: <20010816130234.K1211@bubble.sa.bigpond.net.au>
On Thu, Aug 16, 2001 at 01:02:34PM +0930, Alan Modra wrote:
>
> bfd/ChangeLog
> * 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.
Applying, with Thiemo's suggestion re. unnecessary casts.