fishinabarrel / linux-kernel-module-rust

Framework for writing Linux kernel modules in safe Rust
GNU General Public License v2.0
1.33k stars 120 forks source link

modinfo section missing in release mode #251

Closed geofft closed 4 years ago

geofft commented 4 years ago

If you edit tests/Kbuild to use cargo build --release and release/ instead of debug/, the modinfo tests fail. In fact, readelf -S modinfo_tests.rust.o | grep modinfo shows that there is no longer a modinfo section.

alex commented 4 years ago

#[used]?

On Wed, Aug 19, 2020 at 12:17 AM Geoffrey Thomas notifications@github.com wrote:

If you edit tests/Kbuild to use cargo build --release and release/ instead of debug/, the modinfo tests fail. In fact, readelf -S modinfo_tests.rust.o | grep modinfo shows that there is no longer a modinfo section.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fishinabarrel/linux-kernel-module-rust/issues/251, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAGBEOGI3POPBEMA6LZ43SBNG7HANCNFSM4QEQBJDA .

-- All that is necessary for evil to succeed is for good people to do nothing.

geofft commented 4 years ago

brilliant