Patch "rust: kbuild: fix export of bss symbols" has been added to the 6.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    rust: kbuild: fix export of bss symbols

to the 6.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     rust-kbuild-fix-export-of-bss-symbols.patch
and it can be found in the queue-6.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 890aa8f9f8303b535f4cca16156b2c2e68f38887
Author: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
Date:   Thu Aug 15 07:49:30 2024 +0000

    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: 2f7ab1267dc9 ("Kbuild: add Rust support")
    Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxxx>
    Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
    Tested-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
    Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20240815074519.2684107-2-nmi@xxxxxxxxxxxx
    [ Reworded slightly. - Miguel ]
    Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/rust/Makefile b/rust/Makefile
index f70d5e244fee..47f9a9f1bdb3 100644
--- a/rust/Makefile
+++ b/rust/Makefile
@@ -359,7 +359,7 @@ $(obj)/bindings/bindings_helpers_generated.rs: $(src)/helpers.c FORCE
 quiet_cmd_exports = EXPORTS $@
       cmd_exports = \
 	$(NM) -p --defined-only $< \
-		| awk '/ (T|R|D) / {printf "EXPORT_SYMBOL_RUST_GPL(%s);\n",$$3}' > $@
+		| awk '/ (T|R|D|B) / {printf "EXPORT_SYMBOL_RUST_GPL(%s);\n",$$3}' > $@
 
 $(obj)/exports_core_generated.h: $(obj)/core.o FORCE
 	$(call if_changed,exports)




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux