Linux 6.9 To Allow RISC-V Kernel Builds With Clang Link-Time Optimizations

Written by Michael Larabel in Linux Kernel on 13 February 2024 at 11:28 AM EST. 2 Comments
LINUX KERNEL
Adding to the list of features slated for the upcoming Linux 6.9 cycle is allowing RISC-V kernel builds to be compiled with Clang Link-Time Optimizations (LTO) enabled.

For being able to enhance the resulting binary's performance and size/layout, LTO support will now be available when compiling the RISC-V kernel with LLVM Clang 14.0 or newer, or in particular the LLD 14+ linker.

This patch in RISC-V's "for-next" Git branch prepares the LTO support for the RISC-V kernel build. Both the traditional LTO functionality as well as Clang's ThinLTO mode for a more scalable and incremental approach is supported. The Linux 6.9 merge window is set to open in March while the stable kernel will be out around the middle of the year.

StarFive VisionFive 2


It's been since 2021 with Linux 5.12 when Clang LTO for the Linux kernel was originally added on x86_64.
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