Building the Linux kernel with Clang
summary
Linaro and Google engineers describe getting mainline Linux to build and boot with Clang and LLVM tools, shipping Pixel 2 and Pixel 3 kernels built with LTO builds and testing CFIs like shadow call stack. KernelCI runs daily and a contributor ran ~50 ranconfig builds that uncovered many issues; over 1,000 Linux commits and 100+ LLVM commits reference clang. Work remaining focuses on inline assembly, assembler support, and fixing AArch64 inline patching so builds reliably boot.
AI-written summary · about
chapters (10)
- 0:00Intro
- 0:25Project History
- 3:30Status
- 6:34How Linux Improves LLVM
- 10:06Additions to LLVM
- 13:47Additions to Linux
- 14:27Fun bugs
- 15:52Improvements to both sides
- 20:05What's next?
- 23:00Report bugs
related talks
19m"ClangBuiltLinux: What's Next?"
43mLLVMLinux: Compiling the Linux Kernel with LLVM
19mClangBuiltLinux: What's Next?
49mLLVMLinux: The Linux Kernel with Dragon Wings
42mLLVMLinux: Compiling Android with LLVM
39mControl Flow Integrity in the Linux Kernel
46mClinging to Clang
46mLinux Kernel Functional Testing, or How to Build and Test Millions of Linux Kernels
