DLLTOOL(1) GNU Development Tools DLLTOOL(1) (NAME) dlltool - DLL (SYNOPSIS) dlltool [-d|--input-def def-file-name] [-b|--base-file base-file-name] [-e|--output-exp exports-file-name] [-z|--output-def def-file-name] [-l|--output-lib library-file-name] [-y|--output-delaylib library-file-name] [--export-all-symbols] [--no-export-all-symbols] [--exclude-symbols list] [--no-default-excludes] [-S|--as path-to-assembler] [-f|--as-flags options] [-D|--dllname name] [-m|--machine machine] [-a|--add-indirect] [-U|--add-underscore] [--add-stdcall-underscore] [-k|--kill-at] [-A|--add-stdcall-alias] [-p|--ext-prefix-alias prefix] [-x|--no-idata4] [-c|--no-idata5] [--use-nul-prefixed-import-tables] [-I|--identify library-file-name] [--identify-strict] [-i|--interwork] [-n|--nodelete] [-t|--temp-prefix prefix] [-v|--verbose] [-h|--help] [-V|--version] [--no-leading-underscore] [--leading-underscore] [--deterministic-libraries] [--non-deterministic-libraries] [object-file ...] (DESCRIPTION) dlltool -d -b (object files) . -e (exports file) . -l -z def . -e -l -z dlltool . DLL DLL . dlltool . .def DLL (export) DLL (import) . dlltool -z . dlltool .def . DLL -export: .drectve . C asm() : asm (".section .drectve"); asm (".ascii \"-export:my_func\""); int my_func (void) { ... } DLL (exports file) . DLL (link) DLL . -e dlltool .def . DLL DLL ( `import library' ). -l dlltool .def . -y dlltool delay-import ( ) dll . (static) delayimp __delayLoadHelper2() LoadLibraryA GetProcAddress kernel32 . dlltool . -S dlltool -f . -n dlltool -n . DLL dll.c ( program.o) DLL : gcc -c dll.c dlltool -e exports.o -l dll.lib dll.o gcc dll.o exports.o -o dll.dll gcc program.o dll.lib -o program dlltool DLL . -I --identify ..SH " (OPTIONS)" : -d filename --input-def filename .def . -b filename --base-file filename . (relocation section) dlltool . -e filename --output-exp filename (export file) dlltool . -z filename --output-def filename .def dlltool . -l filename --output-lib filename dlltool . -y filename --output-delaylib filename (delay-import library) dlltool . --deterministic-libraries --non-deterministic-libraries --output-lib --output-delaylib (--deterministic-libraries) (--non-deterministic-libraries). --export-all-symbols (global) (weak) . --no-default-excludes . --exclude-symbols . --no-export-all-symbols .def .drectve . . .drectve dllexport . --exclude-symbols list list . . . --export-all-symbols . --no-default-excludes --export-all-symbols . DllMain@12 DllEntryPoint@0 impure_ptr . --no-default-excludes . --export-all-symbols . -S path --as path . -f options --as-flags options . -S . . . -D name --dll-name name -e .def DLL . -e DLL . -m machine -machine machine . dlltool . DLL ARM DLL Thumb . -a --add-indirect dlltool ! -U --add-underscore dlltool . --no-leading-underscore --leading-underscore . --add-stdcall-underscore dlltool stdcall . stdcall . GNU DLL MS-Windows . -k --kill-at @ stdcall DLL . DLL stdcall @ . ( .idata) . -A --add-stdcall-alias dlltool @ stdcall @ . -p --ext-prefix-alias prefix dlltool DLL . . -x --no-idata4 dlltool ".idata4" . ..IP --use-nul-prefixed-import-tables 4 (exports) dlltool ".idata4" ".idata5" . (import library) gnu "dlltool" . . -c --no-idata5 dlltool ".idata5" . . -I filename --identify filename dlltool filename DLL() "stdout" . . dlltool . --identify-strict . --identify-strict --identify filename DLL . -i --interwork dlltool ARM Thumb . -n --nodelete dlltool . dlltool (object) . -t prefix --temp-prefix prefix dlltool prefix . pid . -v --verbose dlltool . -h --help . -V --version dlltool . @file file . @file . file . file (whitespace) . . ( backslash) backslash . file @file . (SEE ALSO) Info binutils. (COPYRIGHT) Copyright (c) 1991-2026 Free Software Foundation, Inc. / << >> (GNU Free Documentation License) 1.3 (Free Software Foundation) . "GNU Free Documentation License" . binutils-2.47 2026-08-31 DLLTOOL(1)