[PATCH] bfd: Set error to bfd_error_malformed_archive only if unset

H.J. Lu hjl.tools@gmail.com
Mon Jul 26 23:14:42 GMT 2021


On Mon, Jul 26, 2021 at 4:06 PM Alan Modra <amodra@gmail.com> wrote:
>
> On Mon, Jul 26, 2021 at 05:59:02AM -0700, H.J. Lu via Binutils wrote:
> > When reading an archive member, set error to bfd_error_malformed_archive
> > on open_nested_file failure only if the error is unset.
> >
> >       PR ld/28138
> >       * archive.c (_bfd_get_elt_at_filepos): Don't set error to
> >       bfd_error_malformed_archive if it has been set.
>
> OK.  Are there other places we ought to treat similarly?

There could be more.  But I didn't check.


-- 
H.J.


More information about the Binutils mailing list