aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorMatthew Maurer <[email protected]>2025-01-08 23:35:08 +0000
committerMiguel Ojeda <[email protected]>2025-03-11 19:11:09 +0000
commit5daa0c35a1f0e7a6c3b8ba9cb721e7d1ace6e619 (patch)
treeafa7e81e383bd0dc882b7f409d1d0c2b381ca716 /scripts/generate_rust_analyzer.py
parentrust: task: fix `SAFETY` comment in `Task::wake_up` (diff)
downloadkernel-5daa0c35a1f0e7a6c3b8ba9cb721e7d1ace6e619.tar.gz
kernel-5daa0c35a1f0e7a6c3b8ba9cb721e7d1ace6e619.zip
rust: Disallow BTF generation with Rust + LTO
The kernel cannot currently self-parse BTF containing Rust debug information. pahole uses the language of the CU to determine whether to filter out debug information when generating the BTF. When LTO is enabled, Rust code can cross CU boundaries, resulting in Rust debug information in CUs labeled as C. This results in a system which cannot parse its own BTF. Signed-off-by: Matthew Maurer <[email protected]> Cc: [email protected] Fixes: c1177979af9c ("btf, scripts: Exclude Rust CUs with pahole") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions