DLLTOOL(1) GNU Development Tools DLLTOOL(1) (NAME) avr-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 DLL . 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 DLL . -e dlltool .def . DLL DLL ( << >> import library). -l dlltool .def . -y dlltool (delay-import library) DLL . 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 . (OPTIONS) : -d filename --input-def filename .def . -b filename --base-file filename (base file) . (relocation section) dlltool . -e filename --output-exp filename (exports file) dlltool . -z filename --output-def filename .def dlltool . -l filename --output-lib filename dlltool . -y filename --output-delaylib filename dlltool . --deterministic-libraries --non-deterministic-libraries --output-lib --output-delaylib (--deterministic-libraries) (--non-deterministic-libraries). --export-all-symbols (weak) . --no-default-excludes . --exclude-symbols . --no-export-all-symbols .def .drectve . . .drectve dllexport . --exclude-symbols list list . . (underscore) . --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 DLL .def . -e DLL . -m machine -machine machine () . dlltool . DLL ARM 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" . . --use-nul-prefixed-import-tables dlltool ".idata4" ".idata5" . 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 . -t prefix --temp-prefix prefix dlltool prefix . (pid) . -v --verbose dlltool ( ). -h --help . -V --version dlltool . @file file . @file . file . file . . ( ) . file @file . (SEE ALSO) Info binutils. (COPYRIGHT) (c) 1991-2026 (Free Software Foundation, Inc.) / (GNU Free Documentation License) 1.3 . "GNU Free Documentation License" . binutils-2.47 2026-07-30 DLLTOOL(1)