diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2025-03-18 23:18:16 +0000 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2025-04-08 21:44:20 +0200 |
commit | c59026c0570a2a97ce2e7d5ae5e9c48fc841542b (patch) | |
tree | 0eff417856c71776acc9e2b4f98032ef57f9dd8a /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 193b5a75744af2669ad7c5f7aa4f9219dc73ca69 (diff) | |
download | linux-c59026c0570a2a97ce2e7d5ae5e9c48fc841542b.tar.gz linux-c59026c0570a2a97ce2e7d5ae5e9c48fc841542b.tar.bz2 linux-c59026c0570a2a97ce2e7d5ae5e9c48fc841542b.zip |
rust: kbuild: Don't export __pfx symbols
With CONFIG_PREFIX_SYMBOLS, objtool adds __pfx prefix symbols
to claim the compiler emitted call padding bytes. When
CONFIG_X86_KERNEL_IBT is not selected, the symbols are added to
individual object files and for Rust objects, they end up being
exported, resulting in warnings with CONFIG_GENDWARFKSYMS as the
symbols have no debugging information:
warning: gendwarfksyms: symbol_print_versions: no information for symbol __pfx_rust_helper_put_task_struct
warning: gendwarfksyms: symbol_print_versions: no information for symbol __pfx_rust_helper_task_euid
warning: gendwarfksyms: symbol_print_versions: no information for symbol __pfx_rust_helper_readq_relaxed
...
Filter out the __pfx prefix from exported symbols similarly to
the existing __cfi and __odr_asan prefixes.
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Cc: stable@vger.kernel.org
Fixes: ac61506bf2d1 ("rust: Use gendwarfksyms + extended modversions for CONFIG_MODVERSIONS")
Link: https://lore.kernel.org/r/20250318231815.917621-2-samitolvanen@google.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions