[PATCH v3 11/18] BFD: Correct archive format determination for non-default link emulations
Maciej W. Rozycki
macro@redhat.com
Tue Jan 13 01:42:41 GMT 2026
On Thu, 11 Dec 2025, Alan Modra wrote:
> > > BTW, I applied this patch series and built binutils on x86_64-linux
> > > with -fsanitize=address,undefined and found a heap-use-after-free
> > > linking the ld-plugin/plugin.exp PR ld/20070 test. I haven't done any
> > > analysis yet.
Confirmed, same failure here on `powerpc64le-linux-gnu'.
> > Funny enough, it happens to be triggered by the patch that I'm
> > replying to. valgrind also notices the use-after-free.
> >
> > Almost certainly a pre-existing problem.
>
> Actually, no, it is introduced by the patch. Fixed by disabling
> plugins in the second hunk below.
>
> I have not fully analysed exactly why this is necessary, and I'm not
> going to spend the time refreshing my knowledge of the plugin code.
> So please take this just as an educated guess as to what is needed.
Thanks for all your effort; your replacement change seems to reflect my
intent which my proposal didn't get as expected. Included as 06/15 in v4.
Maciej
More information about the Binutils
mailing list