Linking The Linux Kernel With LLVM's LLD Linker
Written by Michael Larabel in Linux Kernel on 29 January 2017 at 07:29 AM EST. 3 Comments
If you are looking for some experimental fun this weekend, the Linux kernel can be linked with LLVM's LLD linker.

Dmitry Golovin has managed the feat of linking the Linux kernel using LLVM's linker, while the upstream Linux kernel still can't be built in full with the LLVM Clang compiler. But with all of the work around LLD's performance, multi-threading, and much more, great to see it can now be used to link the kernel.

In order to succeed, Dmitry had to apply a few patches to the LLD kernel, he's building a minimal kernel configuration for x86_64, and he had to make some basic adjustments to some kernel code.

Those interested in linking the kernel with LLD can find the details and ensuing discussion via this LLVM-dev thread. Those wanting to learn more about LLVM's linker can visit
Related News
About The Author
Author picture

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter or contacted via

Popular News This Week