[committed] MIPS: Correct LSI CW4010 classification for a.out/gold
Maciej W. Rozycki
macro@orcam.me.uk
Sun Nov 8 18:44:48 GMT 2026
Complement commit b417536f2350 ("MIPS/BFD: Consistently mark the LSI
CW4010 as a MIPS II processor") and also correct the classification of
the LSI MiniRISC CW4010 processor core to MIPS II for a.out and in gold.
---
bfd/aoutx.h | 2 +-
gold/mips.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
binutils-mips-afl-ext-4010.diff
Index: binutils-gdb/bfd/aoutx.h
===================================================================
--- binutils-gdb.orig/bfd/aoutx.h
+++ binutils-gdb/bfd/aoutx.h
@@ -785,10 +785,10 @@ NAME (aout, machine_type) (enum bfd_arch
arch_flags = M_MIPS1;
break;
case bfd_mach_mips6000:
+ case bfd_mach_mips4010:
arch_flags = M_MIPS2;
break;
case bfd_mach_mips4000:
- case bfd_mach_mips4010:
case bfd_mach_mips4100:
case bfd_mach_mips4300:
case bfd_mach_mips4400:
Index: binutils-gdb/gold/mips.cc
===================================================================
--- binutils-gdb.orig/gold/mips.cc
+++ binutils-gdb/gold/mips.cc
@@ -4194,7 +4194,6 @@ class Target_mips : public Sized_target<
this->add_extension(mach_mips4400, mach_mips4000);
this->add_extension(mach_mips4300, mach_mips4000);
this->add_extension(mach_mips4100, mach_mips4000);
- this->add_extension(mach_mips4010, mach_mips4000);
this->add_extension(mach_mips5900, mach_mips4000);
// MIPS32 extensions.
@@ -4203,6 +4202,7 @@ class Target_mips : public Sized_target<
// MIPS II extensions.
this->add_extension(mach_mips4000, mach_mips6000);
this->add_extension(mach_mipsisa32, mach_mips6000);
+ this->add_extension(mach_mips4010, mach_mips6000);
// MIPS I extensions.
this->add_extension(mach_mips6000, mach_mips3000);
More information about the Binutils
mailing list