binutils Newspaper
NOVEMBER 30, 2026
dlltool — Proposed

dlltool: Add --short-implib [PR34527]

Add a --short-implib option to dlltool to generate compact PE/COFF import libraries.

This patch introduces the –short-implib option to dlltool, enabling the generation of more compact PE/COFF import libraries. This new format uses shorter import members, which are compatible with existing tools like GNU ld, MSVC, and LLVM. This feature addresses a long-standing need for more efficient import library creation.

In Details

This patch adds support for generating PE/COFF short import libraries via a new --short-implib option in dlltool. This complements the BFD writer added in patch 1/3, allowing dlltool to leverage the new format. Short import libraries are more compact and can be processed by GNU ld, MSVC, and LLVM, addressing a gap in GNU toolchain's import library generation capabilities.

For Context
PE/COFF
Portable Executable/Common Object File Format, the standard file format for executables, object code, and DLLs in 32-bit and 64-bit Windows operating systems.
dlltool
A GNU binutils utility that creates DLL import libraries, or extracts information from them.
Import library
A library that contains information about functions and variables exported by a DLL. It allows programs to link against DLLs without explicitly calling loading functions.
Filed Under: binutilsdlltoolPE/COFFimport library