linux/init
Matthew Maurer 5daa0c35a1 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 <mmaurer@google.com>
Cc: stable@vger.kernel.org
Fixes: c1177979af ("btf, scripts: Exclude Rust CUs with pahole")
Link: https://lore.kernel.org/r/20250108-rust-btf-lto-incompat-v1-1-60243ff6d820@google.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-03-11 20:11:09 +01:00
..
.gitignore
calibrate.c
do_mounts.c
do_mounts.h
do_mounts_initrd.c treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
do_mounts_rd.c
init_task.c
initramfs.c
Kconfig rust: Disallow BTF generation with Rust + LTO 2025-03-11 20:11:09 +01:00
main.c The various patchsets are summarized below. Plus of course many 2025-01-26 18:36:23 -08:00
Makefile
noinitramfs.c
version-timestamp.c
version.c