[PATCH 2/4] x86: drop iamcu as default secondary target

Jan Beulich jbeulich@suse.com
Sun Apr 5 06:52:41 GMT 2026


On 03.04.2026 14:53, Maciej W. Rozycki wrote:
> On Fri, 13 Mar 2026, Jan Beulich wrote:
> 
>> It's not clear why this would have been forced onto about everyone
>> x86-ish. People wanting this as secondary target can specify it via the
>> --enable-targets= configure option.
> 
>  This breaks the handling of `-march=iamcu':
> 
> $ i386-linux-as -march=iamcu -o test.o /dev/null
> Assembler messages:
> Fatal error: selected target format 'elf32-iamcu' unknown
> $ 
> 
> Was this effect considered in your decision to drop the BFD target?

Yes, albeit some cleaning up in gas may be needed (along the lines of
other cleanup I already did there not so long ago, and also along the
lines of more related cleanup that wants doing). If you want to be able
to use -march=iamcu, you need to enable that target as a secondary one.
(I actually question that it was a good move to make iamcu a secondary
target about everywhere in the first place. It is a distinct target.)

Jan


More information about the Binutils mailing list