]> www.infradead.org Git - users/hch/misc.git/commit
rust: kbuild: do not export generated KASAN ODR symbols
authorMatthew Maurer <mmaurer@google.com>
Wed, 22 Jan 2025 00:14:43 +0000 (00:14 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 6 Feb 2025 18:47:04 +0000 (19:47 +0100)
commit0e446e3145011b8fe39759b59bd69d39fb47cfeb
treedb8d41010c55302a21962fb0d11b4d15e67c5b8d
parenta9c621a217128eb3fb7522cf763992d9437fd5ba
rust: kbuild: do not export generated KASAN ODR symbols

ASAN generates special synthetic symbols to help check for ODR
violations. These synthetic symbols lack debug information, so
gendwarfksyms emits warnings when processing them. No code should ever
have a dependency on these symbols, so we should not be exporting them,
just like the __cfi symbols.

Signed-off-by: Matthew Maurer <mmaurer@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250122-gendwarfksyms-kasan-rust-v1-1-5ee5658f4fb6@google.com
[ Fixed typo in commit message. Slightly reworded title. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/Makefile