binutils-gdb/ld/testsuite/ld-arm/attr-merge-arch-2.d
Christophe Lyon b3a1e48614 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.
2023-09-04 12:34:30 +00:00

6 lines
142 B
Makefile

#source: attr-merge-arch-2a.s
#source: attr-merge-arch-2b.s
#as:
#ld: -e main
#error: conflicting CPU architectures ARM v7E-M vs Pre v4 in .*