Get the latest tech news
gendwarfksyms Tool Added To Linux 6.14 To Help With Rust Push
Merged on Friday to the Linux 6.14 kernel were the Kbuild feature changes for this cycle
Per Luis' request, v2 dropped the Rust specific bits from the series and instead added the feature as an option for the entire kernel to make it easier to evaluate the benefits of this approach, and to get better test coverage. Short background: Unlike C, Rust source code doesn't have sufficient information about the final ABI, as the compiler has considerable freedom in adjusting structure layout, for example, which makes using a source code parser like genksyms a non-starter. DWARF is an established and a relatively stable format, which includes all the necessary ABI details, and adding a CONFIG_DEBUG_INFO dependency for Rust symbol versioning seems like a reasonable trade-off as most distributions already enable it."
Or read this on Phoronix