[PATCH] gas, bfd, gold: Rename Arm v8/v9 architecture tags

Richard Earnshaw (foss) Richard.Earnshaw@arm.com
Thu May 28 09:05:22 GMT 2026


On 27/05/2026 15:19, Sivan Shani wrote:
> Rename the Arm AEABI CPU architecture tag constants and macro definitions 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.
> 
> v1
> Update BFD, GAS and Gold usage accordingly, including attribute combination
> tables, architecture checks, and mach selection.
> 
> v2
> Formating
> ---
>  bfd/archures.c      |   4 +-
>  bfd/bfd-in2.h       |   4 +-
>  bfd/cpu-arm.c       |  46 ++++++++---------
>  bfd/elf32-arm.c     | 120 ++++++++++++++++++++++----------------------
>  elfcpp/arm.h        |  12 ++---
>  gas/config/tc-arm.c |  38 +++++++-------
>  gold/arm.cc         |  32 ++++++------
>  include/elf/arm.h   |  12 ++---
>  opcodes/arm-dis.c   |   4 +-
>  9 files changed, 136 insertions(+), 136 deletions(-)
> 

> --- a/bfd/cpu-arm.c
> +++ b/bfd/cpu-arm.c

[...]

> @@ -262,12 +262,12 @@ static const bfd_arch_info_type arch_info_struct[] =
>    N (bfd_mach_arm_6M,        "armv6-m",        false, & arch_info_struct[19]),
>    N (bfd_mach_arm_6SM,       "armv6s-m",       false, & arch_info_struct[20]),
>    N (bfd_mach_arm_7EM,       "armv7e-m",       false, & arch_info_struct[21]),
> -  N (bfd_mach_arm_8,         "armv8-a",        false, & arch_info_struct[22]),
> +  N (bfd_mach_arm_8A,         "armv8-a",        false, & arch_info_struct[22]),

Please check the indentation here of the second and third elements; they should be aligned in the columns.

>    N (bfd_mach_arm_8R,        "armv8-r",        false, & arch_info_struct[23]),
>    N (bfd_mach_arm_8M_BASE,   "armv8-m.base",   false, & arch_info_struct[24]),
>    N (bfd_mach_arm_8M_MAIN,   "armv8-m.main",   false, & arch_info_struct[25]),
>    N (bfd_mach_arm_8_1M_MAIN, "armv8.1-m.main", false, & arch_info_struct[26]),
> -  N (bfd_mach_arm_9,         "armv9-a",        false, & arch_info_struct[27]),
> +  N (bfd_mach_arm_9A,         "armv9-a",        false, & arch_info_struct[27]),

and here.

OK once that's sorted.

R.



More information about the Binutils mailing list