tsgates / rust.ko

A minimal Linux kernel module written in rust.
896 stars 66 forks source link

--gc-sections causes undefined symbol errors. #22

Open tbelaire opened 8 years ago

tbelaire commented 8 years ago

I've been forced to remove the --gc-sections line, as it removes functions, including _Unwind_Resume, causing errors at link time. This is only apparent if you've started using something from the stdlib that can panic, as otherwise there are no references to _Unwind_Resume, but for my rot13 branch, I have been unable to build with --gc-sections.

tbelaire commented 8 years ago

Ah, this could be because I'm passing fn pointers into the kernel, and not calling things directly so it looks like dead code perhaps?