https://sourceware.org/bugzilla/show_bug.cgi?id=17852
Bug ID: 17852
Summary: ARM: selected_cpu may stay unset if compiled with
CPU_DEFAULT
Product: binutils
Version: 2.25
Status: NEW
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: daniel-gl at gmx dot net
If gas is compiled with CPU_DEFAULT defined, it will set selected_cpu in
md_begin() only if neither -march nor -mcpu has been passed.
This error shows itself f.ex. when assembling arch/arm/lib/changebit.S in
current Linux kernels for an armv7-a platform. This file contains an
".arch_extension mp" line that makes s_arm_arch_extension() set cpu_variant to
selected_cpu|ARM_EXT_MP. As selected_cpu was unset, it refuses to assemble
following instructions with "attempt to use an ARM instruction on a Thumb-only
processor" error messages. Setting cpu_variant from selected_cpu IMHO looks
fishy as well, but I didn't file a bug for that one.
--
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils