lld 17.0.0git Release Notes¶
Warning
These are in-progress notes for the upcoming LLVM 17.0.0git release. Release notes for previous releases can be found on the Download Page.
Introduction¶
This document contains the release notes for the lld linker, release 17.0.0git. Here we describe the status of lld, including major improvements from the previous release. All lld releases may be downloaded from the LLVM releases web site.
Non-comprehensive list of changes in this release¶
ELF Improvements¶
ELFCOMPRESS_ZSTDcompressed input sections are now supported. (D129406)--compress-debug-sections=zstdis now available to compress debug sections with zstd (ELFCOMPRESS_ZSTD). (D133548)--no-warnings/-wis now available to suppress warnings. (D136569)DT_RISCV_VARIANT_CCis now produced if at least oneR_RISCV_JUMP_SLOTrelocation references a symbol with theSTO_RISCV_VARIANT_CCbit. (D107951)--remap-inputs=and--remap-inputs-file=are added to remap input files. (D148859)PT_RISCV_ATTRIBUTESis added to include the SHT_RISCV_ATTRIBUTES section. (D152065)
Breaking changes¶
COFF Improvements¶
lld-link can now find libraries with relative paths that are relative to /libpath. Before it would only be able to find libraries relative to the current directory. I.e.
lld-link /libpath:c:\relative\root relative\path\my.libwhere before we would have to dolld-link /libpath:c:\relative\root\relative\path my.liblld-link learned -print-search-paths that will print all the paths where it will search for libraries.
By default lld-link will now search for libraries in the toolchain directories. Specifically it will search:
<toolchain>/lib,<toolchain>/lib/clang/<version>/liband<toolchain>/lib/clang/<version>/lib/windows.
MinGW Improvements¶
MachO Improvements¶
WebAssembly Improvements¶
Fixes¶
Arm exception index tables (.ARM.exidx sections) are now output correctly when they are at a non zero offset within their output section. (D148033)
