binutils Newspaper
NOVEMBER 30, 2026
mips — Committed

MIPS: Add missing Octeon machine type handling

This commit addresses a follow-up fix for MIPS Octeon machine type handling, acknowledging a missed opportunity in a previous commit.

This discussion is a reply to a committed patch that added Octeon 3 support to MIPS, specifically addressing machine type handling in BFD and gold, as well as a.out support. The author acknowledges a missed opportunity to include this in the original commit and confirms its necessity.

In the Thread 2 participants
  1. Maciej W. Rozycki <macro@orcam.me.uk> contributor

    Confirms that a.out support is likely obsolete but suggests keeping it updated until dropped, and explains the conditions under which the machine type handling logic is triggered.

    “Also a.out stuff is probably obsolete (though I'd rather keep it updated until dropped) and the `*_mips_isa_ext_mach' stuff doesn't trigger unless EF_MIPS_MACH field is clear and AFL_EXT_* in .MIPS.abiflags is not, which doesn't normally happen (though obviously you can orchestrate such an ELF object; not with standard binutils AFAICT though).”
  2. Andrew Pinski contributor

    Thanks the other author for the follow-up fix, acknowledging he missed it previously.

Technical Tradeoffs

  • Maintaining compatibility with potentially obsolete a.out format.
  • Ensuring correct handling of diverse MIPS processor variants.

In Details

This discussion clarifies an aspect of MIPS machine type handling within binutils, specifically concerning Octeon processors and both ELF and older a.out object file formats. The comments delve into the nuances of the *_mips_isa_ext_mach logic, its interaction with the ELF header fields, and the deprecation status of a.out.

For Context
Octeon
A family of multi-core microprocessors developed by Cavium Networks (now Marvell).
BFD
Binutils Format Description, a library used by binutils to support various object file formats.
gold
An alternative linker for the GNU toolchain, designed to be faster and more scalable than the traditional ld linker.
a.out
A formerly common object file format on Unix-like systems, predating ELF.
MIPS
A family of RISC instruction set architectures.
Filed Under: MIPSOcteonbinutilsmachine-typea.out