[PATCH v5 03/12] BFD: Correct archive format determination for non-default link emulations

Maciej W. Rozycki macro@redhat.com
Wed Jan 28 19:33:43 GMT 2026


On Wed, 28 Jan 2026, Hans-Peter Nilsson wrote:

> > >  With non-aout CRIS configurations this link uses the aout emulation, 
> > > which suffers from PR binutils/33485.  I can put a note to that effect 
> > > above the conditional if this is what you are after.
> > 
> > Yes thanks, that's exactly what I'm after, sorry for not being clear.
> 
> Also:
> 
> Hmm, the parameters and the test-description don't look
> a.out-cris-specific.  What am I missing?

 The CRIS target is the only one nowadays that supports aout and non-aout 
formats both at a time, and the aout BFD backend is one that crashes when 
incorrectly chosen by the BFD linker to handle ELF archive members.  For 
completeness this test covers the opposite situation as well, though it 
doesn't cause a crash, but hits PR binutils/33485 instead.  Yeah, corner 
cases and bitrot...

  Maciej



More information about the Binutils mailing list