[PATCH] bfd: Don't check non-thin archive member file size

H.J. Lu hjl.tools@gmail.com
Mon Dec 27 13:31:13 GMT 2021


On Sun, Dec 26, 2021 at 10:56 PM Alan Modra <amodra@gmail.com> wrote:
>
> On Fri, Dec 24, 2021 at 03:46:04PM -0800, H.J. Lu via Binutils wrote:
> > There is no need to check member file size for thin archive member.
>
> Does it hurt to check against the file size recorded in the archive
> header?  Did someone report a "bug", perhaps that a thin archive
> member file was updated without running ar, and then hit an error?
>

While debugging a GCC bootstrap bug, I copied a .o file without running
ar on a thin archive.  Other linkers didn't complain.  There is no need to.

-- 
H.J.


More information about the Binutils mailing list