mold 2.40.3 is a maintenance release of the high-speed linker.
Bug Fixes and Compatibility Improvements
- Starting from 2.40.1, mold wrote not a single but multiple concatenated zlib-compressed streams to debug sections if
--compress-debug-sections=zlib
was given. Although most tools can read such concatenated compressed data, some tools, such as LLVM'sdwarfdump
or Go'sdebug/elf
package, couldn't handle them, which caused a regression. Now, mold emits a single zlib stream to each debug section. (201bc71) - If a command-line argument is in the form of
@path/to/some/file
, the linker reads the contents of the given file and interprets it as a list of command-line arguments. Such a file is called a "response file." Previously, mold could not handle partially-quoted tokens in a response file (e.g.-L"some/path"
as opposed to"-Lsome/path"
). Now, mold can handle such arguments. (6e8852e) - [PPC64]
R_PPC64_GOT16*
relocations are now supported. (5485fde)