[PATCH v1] ARM: rust: Generate unwind tables for Rust code with ARM_UNWIND
FUJITA Tomonori
tomo at flapping.org
Tue Nov 3 01:25:11 PST 2026
Hi Russell, Miguel,
On Fri, 9 Oct 2026 21:41:24 +0900
FUJITA Tomonori <tomo at flapping.org> wrote:
> From: FUJITA Tomonori <fujita.tomonori at gmail.com>
>
> When CONFIG_ARM_UNWIND=y, C code is built with -funwind-tables, but
> Rust code is built with -Cforce-unwind-tables=n. As a result, the
> unwinder stops at the first Rust frame.
>
> Pass -Cforce-unwind-tables=y to rustc in that case, as arm64 does.
>
> Fixes: ccb8ce526807 ("ARM: 9441/1: rust: Enable Rust support for ARMv7")
> Assisted-by: LLM
> Signed-off-by: FUJITA Tomonori <fujita.tomonori at gmail.com>
> ---
> arch/arm/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/Makefile b/arch/arm/Makefile
> index 573813ef5e77..d59b8daf4f4e 100644
> --- a/arch/arm/Makefile
> +++ b/arch/arm/Makefile
> @@ -117,6 +117,7 @@ endif
>
> ifeq ($(CONFIG_ARM_UNWIND),y)
> CFLAGS_ABI +=-funwind-tables
> +KBUILD_RUSTFLAGS += -Cforce-unwind-tables=y
> endif
>
> ifeq ($(CONFIG_CC_IS_CLANG),y)
>
> base-commit: a90ee4305c4a5df72c11b31dacfdc76e00fcf78a
Gentle ping. The patch still applies cleanly on top of v7.4-rc1.
Which tree should this go through?
More information about the linux-arm-kernel
mailing list