gas, bfd: Rename Arm v8/v9 architecture tags
Renames Arm v8/v9 architecture tags in gas and bfd to include profile suffixes for A-profile, maintaining consistency and tag values.
This patch focuses on renaming the Arm architecture tag constants in gas and bfd to include the profile suffix (A) for A-profile architectures, bringing them into alignment with existing v8-R and v8-M tags. The existing numeric tag values are preserved. This involves updating BFD and GAS usage, covering attribute combination tables, architecture checks, and mach selection. The patch also addresses gold build failures reported by linaro checkers.
- proposer
Proposes renaming Arm AEABI CPU architecture tag constants to include the profile suffix for A-profile architectures, aiming for consistency and addressing gold build failures.
“Rename the Arm AEABI CPU architecture tag constants to include the profile suffix for A-profile architectures. This makes the naming consistent with existing v8-R and v8-M tag names, while preserving the existing numeric tag values.”
In Details
This patch modifies the architecture tag definitions in gas and bfd, specifically for ARM. It changes constant names to include the profile (A, R, M) to be more explicit. This affects how the assembler and BFD identify and process different ARM architecture variants.
For Context
When the toolchain deals with ARM processors, it distinguishes between different versions and types, such as ARMv8-A or ARMv9-M. These distinctions are encoded in architecture tags. This patch renames these tags in the assembler (gas) and the binary file descriptor library (BFD) to make them clearer by including the profile (A, R, M) in the name. This change helps ensure consistency and reduces ambiguity when specifying the target architecture.