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
LINUX KERNEL
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 lld.llvm.org.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com 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 OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week