binutils Newspaper
JUNE 15, 2026
bfd Needs Revision

gas, bfd: Rename Arm v8/v9 architecture tags

Renames Arm AEABI CPU architecture tag constants in gas and bfd to include the profile suffix for A-profile architectures, but needs build failure fixes.

Sivan Shani proposed renaming the Arm AEABI CPU architecture tag constants to include the profile suffix for A-profile architectures. This change aims to make the naming consistent with existing v8-R and v8-M tag names while preserving the existing numeric tag values. The patch updates BFD and GAS usage accordingly, including attribute combination tables, architecture checks, and mach selection. Richard Earnshaw notes that the patch needs build failure fixes, specifically when building with --enable-gold.

In the Thread 1 participant
  1. Richard Earnshaw (foss) reviewer

    Requests build failure fixes, specifically with `--enable-gold`.

    “This is a nice cleanup, but you need to fix the build failures (in gold) that the linaro checkers picked up on. Try building with --enable-gold.”

In Details

This patch renames the architecture tags used in the ARM backend of binutils (specifically in gas and bfd) to include profile suffixes (A, R, M) for better consistency. These tags are used to identify the target architecture during assembly and linking. The changes affect bfd/elf32-arm.c, elfcpp/arm.h, gas/config/tc-arm.c, and include/elf/arm.h.

For Context

Binutils is a collection of binary tools, including the GNU assembler (gas) and the Binary File Descriptor library (BFD). The assembler translates assembly code into machine code, and BFD provides a uniform interface for manipulating different object file formats. This patch modifies the way ARM architectures are identified within binutils, renaming architecture tags to include profile suffixes (A, R, M) for clarity and consistency. This ensures that the correct code is generated and linked for the intended ARM processor.

Filed Under: armarchitecturetagsgasbfd