[llvm-dev] Is it possible to generate a whole kernel bitcode for Linux using clang?

Jason Thomas via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 10 02:39:02 PDT 2019


With clang/llvm 9.0 adding support for ASM GOTOs, it is now possible to
compile the latest Linux kernel with clang without any modification.
However, is it possible to generate a single bitcode for the whole Linux
kernel? Earlier approaches would involve hacks, like compiling separate
bitcode files and then linking with llvm-link, or using wllvm, or using
some other wrapper. Frequently, the resulting bitcode was not functional
due to different parts being missing. Did that situation change at all? Can
we generate a function, monolithic, self-contained bitcode using something
like libLTO? Any help would be appreciated.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191010/165642d9/attachment.html>

More information about the llvm-dev mailing list