Skip to content

mold 2.40.3

Choose a tag to compare

@rui314 rui314 released this 30 Jul 12:23
· 78 commits to main since this release

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's dwarfdump or Go's debug/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)