OpenCloudOS-Kernel/rust
Andreas Hindborg b4b2115d1f rust: kbuild: fix export of bss symbols
[ Upstream commit b8673d56935c32a4e0a1a0b40951fdd313dbf340 ]

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:11:32 +02:00
..
alloc rust: upgrade to Rust 1.73.0 2024-02-16 19:10:43 +01:00
bindings linux-kselftest-kunit-6.6-rc1 2023-08-28 18:56:38 -07:00
kernel rust: types: Make Opaque::get const 2024-09-12 11:11:25 +02:00
macros rust: macros: provide correct provenance when constructing THIS_MODULE 2024-09-12 11:11:25 +02:00
uapi rust: upgrade to Rust 1.68.2 2023-05-31 17:35:03 +02:00
.gitignore rust: support running Rust documentation tests as KUnit ones 2023-07-19 09:32:53 -06:00
Makefile rust: kbuild: fix export of bss symbols 2024-09-12 11:11:32 +02:00
bindgen_parameters rust: Ignore preserve-most functions 2024-01-25 15:35:41 -08:00
build_error.rs rust: add `build_error` crate 2022-12-04 01:59:16 +01:00
compiler_builtins.rs rust: upgrade to Rust 1.73.0 2024-02-16 19:10:43 +01:00
exports.c rust: add `build_error` crate 2022-12-04 01:59:16 +01:00
helpers.c Rust changes for v6.6 2023-08-29 08:19:46 -07:00