* [PATCH v1] ARM: rust: Generate unwind tables for Rust code with ARM_UNWIND
@ 2026-10-09 12:41 FUJITA Tomonori
0 siblings, 0 replies; only message in thread
From: FUJITA Tomonori @ 2026-10-09 12:41 UTC (permalink / raw)
To: linux, ojeda
Cc: ardb, chrisi.schrefl, linux-arm-kernel, a.hindborg, acourbot,
aliceryhl, bjorn3_gh, boqun, dakr, daniel.almeida, gary, lossin,
tamird, tmgross, work, rust-for-linux, FUJITA Tomonori
From: FUJITA Tomonori <fujita.tomonori@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@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
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-09 12:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-09 12:41 [PATCH v1] ARM: rust: Generate unwind tables for Rust code with ARM_UNWIND FUJITA Tomonori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox