This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Should ld cache bfd_check_format return?
On Wed, Apr 19, 2006 at 01:44:44PM -0700, H. J. Lu wrote:
> On Wed, Apr 19, 2006 at 07:21:24AM -0700, H. J. Lu wrote:
> > load_symbols does
> >
> > ldfile_open_file (entry);
> >
> > if (! bfd_check_format (entry->the_bfd, bfd_archive)
> > && ! bfd_check_format_matches (entry->the_bfd, bfd_object, &matching))
> >
> > ldfile_open_file also calls bfd_check_format. Should ld cache
> > bfd_check_format return?
> >
>
> This patch caches bfd_check_format return.
We already cache in bfd->format.
--
Alan Modra
IBM OzLabs - Linux Technology Centre