3 ms·
And while you can link a gcc-compiled kernel with llvm-compiled rust, apparently you lose some link-time optimization, and with that control-flow integrity [1].
by wongarsu 4y ago
And while you can link a gcc-compiled kernel with llvm-compiled rust, apparently you lose some link-time optimization, and with that control-flow integrity [1]. That's a potential security concern for the kernel, in addition to the usability issues of using two toolchains.
1: https://www.cs.ucy.ac.cy/~elathan/papers/tops20.pdf https://www.cs.ucy.ac.cy/~elathan/papers/tops20.pdf
- JoshTriplett 4y agorustc_codegen_gcc will solve the same problem. I would expect it to be possible to do LTO and CFI across rustc_codegen_gcc and gcc-compiled C or C++ code.