]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: kbuild: fix export of bss symbols
authorAndreas Hindborg <a.hindborg@samsung.com>
Thu, 15 Aug 2024 07:49:30 +0000 (07:49 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 20 Aug 2024 23:24:10 +0000 (01:24 +0200)
commitb8673d56935c32a4e0a1a0b40951fdd313dbf340
tree8be5954a5db74fba67bbc98488609192de118201
parent47ac09b91befbb6a235ab620c32af719f8208399
rust: kbuild: fix export of bss symbols

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: 2f7ab1267dc9 ("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>
rust/Makefile