lld 16.0.6 Release Notes¶
Introduction¶
This document contains the release notes for the lld linker, release 16.0.6. 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¶
Link speed improved greatly compared with lld 15.0. Notably input section initialization and relocation scanning are now parallel. (D130810) (D133003)
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)DT_STATIC_TLSis now set for AArch64/PPC32/PPC64 initial-exec TLS models when producing a shared object.--no-undefined-versionis now the default; symbols named in version scripts that have no matching symbol in the output will be reported. Use--undefined-versionto revert to the old behavior. (D135402)-Vis now an alias for-vto supportgcc -fuse-ld=lld -von many targets.-rno longer defines__global_pointer$or_TLS_MODULE_BASE_.A corner case of mixed GCC and Clang object files (
STB_WEAKandSTB_GNU_UNIQUEin different COMDATs) is now supported. (D136381)The output
SHT_RISCV_ATTRIBUTESsection now merges all input components instead of picking the first input component. (D138550)For x86-32,
-fno-pltGD/LD TLS modelscall *___tls_get_addr@GOT(%reg)are now supported. Previous output might have runtime crash.
Breaking changes¶
COFF Improvements¶
The linker command line entry in
S_ENVBLOCKof the PDB is now stripped from input files, to align with MSVC behavior. (D137723)Switched from SHA1 to BLAKE3 for PDB type hashing /
-gcodeview-ghash(D137101)Improvements to the PCH.OBJ files handling. Now LLD behaves the same as MSVC link.exe when merging PCH.OBJ files that don’t have the same signature. (D136762)
Changed the OrdinalBase for DLLs from 0 to 1, matching the output from both MS link.exe and GNU ld. (D134140)
MinGW Improvements¶
The lld-specific options
--guard-cf,--no-guard-cf,--guard-longjmpand--no-guard-longjmphas been added to allow enabling Control Flow Guard and long jump hardening. These options are disabled by default, but enabling--guard-cfwill also enable--guard-longjmpunless--no-guard-longjmpis also specified.--guard-longjmpdepends on--guard-cfand cannot be used by itself. Note that these features require the_load_config_usedsymbol to contain the load config directory and be filled with the required symbols. (D132808)Pick up libraries named
<name>.libwhen linked with-l<name>, even if-statichas been specified. This fixes conformance to what GNU ld does. (D135651)Unwinding in Rust code on i386 in MinGW builds has been fixed, by avoiding to leave out the
rust_eh_personalitysymbol. (D136879)
