linux-yocto/rust
Andreas Hindborg ca647e8779 rust: kbuild: fix export of bss symbols
[ Upstream commit b8673d5693 ]

Symbols in the bss segment are not currently exported. This is a problem
for Rust modules that link against statics, that are resident in the kernel
image. Thus export symbols in the bss segment.

Fixes: 2f7ab1267d ("Kbuild: add Rust support")
Signed-off-by: Andreas Hindborg <a.hindborg@samsung.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Tested-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://lore.kernel.org/r/20240815074519.2684107-2-nmi@metaspace.dk
[ Reworded slightly. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-09-12 11:10:21 +02:00
..
alloc
bindings
kernel rust: error: Rename to_kernel_errno() -> to_errno() 2024-05-17 11:56:16 +02:00
macros rust: macros: fix soundness issue in module! macro 2024-05-17 11:56:17 +02:00
.gitignore
bindgen_parameters
compiler_builtins.rs
exports.c
helpers.c
Makefile rust: kbuild: fix export of bss symbols 2024-09-12 11:10:21 +02:00