aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorSami Tolvanen <[email protected]>2025-03-18 23:18:16 +0000
committerMiguel Ojeda <[email protected]>2025-04-08 19:44:20 +0000
commitc59026c0570a2a97ce2e7d5ae5e9c48fc841542b (patch)
tree0eff417856c71776acc9e2b4f98032ef57f9dd8a /rust/helpers/platform.c
parentrust: pin-init: use Markdown autolinks in Rust comments (diff)
downloadkernel-c59026c0570a2a97ce2e7d5ae5e9c48fc841542b.tar.gz
kernel-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 <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Cc: [email protected] Fixes: ac61506bf2d1 ("rust: Use gendwarfksyms + extended modversions for CONFIG_MODVERSIONS") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions