summaryrefslogtreecommitdiff
path: root/scripts/kconfig/tests/preprocess/variable/__init__.py
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2026-06-16 12:30:38 +0000
committerMiguel Ojeda <ojeda@kernel.org>2026-06-19 10:00:06 +0200
commit191f49f1e38b1c10eb44b0f967c6175c884ef7db (patch)
treef8f9768b3c64b5eb5ef1b2d81345345aa0e25a00 /scripts/kconfig/tests/preprocess/variable/__init__.py
parentac4d1caa82d487e7ed46d0597da1adc9c1a51c70 (diff)
downloadlwn-191f49f1e38b1c10eb44b0f967c6175c884ef7db.tar.gz
lwn-191f49f1e38b1c10eb44b0f967c6175c884ef7db.zip
rust: Kbuild: set frame-pointer llvm module flag for CONFIG_FRAME_POINTER
Due to a rustc bug, the -Cforce-frame-pointers=y flag only emits the frame-pointer annotation for functions, but not for the module. This means that functions generated by the LLVM backend such as 'asan.module_ctor' do not receive the frame-pointer annotation. This is likely to lead to broken backtraces and may also cause issues with ftrace if these features are used with functions generated by the LLVM backend. Thus, use -Zllvm_module_flag to work around this rustc bug if using a rustc without the fix. [ The fix [1] has landed for Rust 1.98.0 (expected release on 2026-08-20). - Miguel ] Cc: stable@vger.kernel.org # 6.12.y and later (flag not available in pinned Rust in older LTSs). Fixes: 2f7ab1267dc9 ("Kbuild: add Rust support") Link: https://github.com/rust-lang/rust/pull/156980 [1] Signed-off-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20260616-frame-ptr-fix-v1-1-dc6b29a631d9@google.com [ - Adjusted Cc: stable@ as discussed. - Added comment with link to the PR, similar to what we did in commit ac35b5580ace ("rust: arm64: set uwtable llvm module flag for CONFIG_UNWIND_TABLES"). - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts/kconfig/tests/preprocess/variable/__init__.py')
0 files changed, 0 insertions, 0 deletions