From 2db8a4d77a8d30090d51ddba8cb0b2919ab84969 Mon Sep 17 00:00:00 2001 From: Marco Casaroli Date: Thu, 8 Oct 2026 23:35:35 +0200 Subject: [PATCH] libs/libc/machine/arm: Include nuttx/config.h in arch_mcount.S. arch_mcount.S selects the ARMv6-M code with CONFIG_ARCH_CORTEXM0 and CONFIG_ARCH_CORTEXM23, but it did not include nuttx/config.h. So it always assembled the Thumb-2 code, and CONFIG_PROFILE_MINI did not build on Cortex-M0, M0+ and M23: arch_mcount.S:48: Error: cannot honor width suffix -- `bic r1,r1,#1' Include nuttx/config.h. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli --- libs/libc/machine/arm/arch_mcount.S | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/libc/machine/arm/arch_mcount.S b/libs/libc/machine/arm/arch_mcount.S index d9aa406d5a4..85a75e52b8d 100644 --- a/libs/libc/machine/arm/arch_mcount.S +++ b/libs/libc/machine/arm/arch_mcount.S @@ -18,6 +18,12 @@ * ****************************************************************************/ +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include + /**************************************************************************** * Public Functions ****************************************************************************/