arm: Make 'conflicting CPU architectures' error message more user-friendly
authorChristophe Lyon <christophe.lyon@linaro.org>
Fri, 1 Sep 2023 13:52:49 +0000 (13:52 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Mon, 4 Sep 2023 12:34:30 +0000 (12:34 +0000)
commitb3a1e48614c3ae9a9be09e32183b9a57c93e1f88
treee09b0987fd1e36ed5f1d75af5a5a7580c65f32a5
parent1b9a9c30a073c9be8ae12faf195021e843ba9757
arm: Make 'conflicting CPU architectures' error message more user-friendly

Error messages such as "conflicting CPU architectures 10/16" are not
very to understand, so this patch replaces the numbers with the
description they actually mean:
"conflicting CPU architectures ARM v7E-M vs Pre v4"

2023-09-01  Christophe Lyon  <christophe.lyon@linaro.org>

bfd/
* elf32-arm.c (tag_cpu_arch_combine): Add name_table parameter and
use it.
(elf32_arm_merge_eabi_attributes): Update call to
tag_cpu_arch_combine.

ld/
* testsuite/ld-arm/attr-merge-9.out: Update expected error
message.
* testsuite/ld-arm/attr-merge-arch-2.d: Likewise.
bfd/elf32-arm.c
ld/testsuite/ld-arm/attr-merge-9.out
ld/testsuite/ld-arm/attr-merge-arch-2.d