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

Maciej W. Rozycki macro@redhat.com
Wed Jan 28 17:32:45 GMT 2026


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

> > Address the issue by always checking the format of the first member of 
> > an archive even if no default target has been specified, except when the 
> > target being checked against is be the plugin target.  Verified by hand 
> 
> (nit: "is be the" sounds like wrong grammar)

 Well-spotted, thanks!  That "be" is likely a leftover from an earlier 
wording, which slipped through as I was making changes.

> > +if { ![istarget cris-*-*aout*] } {
> > +    setup_xfail "binutils/33485" "*-*-*"
> > +}
> 
> ...the following test needs to be xfailed for non-aout CRIS
> configurations (FAOD I'm looking for a logical explanation
> why they'd fail, i.e. not just "because they're failing").
> Probably just a line or two is needed.
> 
> > +run_ld_link_tests [list \
> > +    [list "CRIS thin archive link (implicit emulation)" \
> > +	"-e ff" "tmpdir/abt.a --verbose --print-map" \
> > +	"$asemul" {../ld-archive/abc.s} \
> > +	{{ld ../ld-archive/abtc.vd} \
> > +	 {nm "" ../ld-archive/abc.nd} \
> > +	 {nm "" ../ld-archive/nx.nd}} \
> > +	"abtci" \
> > +    ] \
> > +]

 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.  Or do you want to 
have actual details from said PR here?  It is not specific to the CRIS 
target, all aout targets are affected.

  Maciej



More information about the Binutils mailing list