Chapter 14. Create files needed to build and use DLLs 51
-no-export-all-symbols
Only export symbols explicitly listed in an input .def file or in .drectve sections in the input
object files. This is the default behaviour. The .drectve sections are created by dllexport
attributes in the source code.
-exclude-symbols list
Do not export the symbols in list. This is a list of symbol names separated by comma or colon
characters. The symbol names should not contain a leading underscore. This is only meaningful
when -export-all-symbols is used.
-no-default-excludes
When -export-all-symbols is used, it will by default avoid exporting certain special
symbols. The current list of symbols to avoid exporting is DllMain@12, DllEntryPoint@0,
impure_ptr. You may use the -no-default-excludes option to go ahead and export these
special symbols. This is only meaningful when -export-all-symbols is used.
-S path
-as path
Specifies the path, including the filename, of the assembler to be used to create the exports file.
-f options
-as-flags options
Specifies any specific command line options to be passed to the assembler when building the
exports file. This option will work even if the -S option is not used. This option only takes
one argument, and if it occurs more than once on the command line, then later occurrences will
override earlier occurrences. So if it is necessary to pass multiple options to the assembler they
should be enclosed in double quotes.
-D name
-dll-name name
Specifies the name to be stored in the .def file as the name of the DLL when the -e option is
used. If this option is not present, then the filename given to the -e option will be used as the
name of the DLL.
-m machine
-machine machine
Specifies the type of machine for which the library file should be built. dlltool has a built in
default type, depending upon how it was created, but this option can be used to override that.
This is normally only useful when creating DLLs for an ARM processor, when the contents of
the DLL are actually encode using Thumb instructions.
-a
-add-indirect
Specifies that when dlltool is creating the exports file it should add a section which allows
the exported functions to be referenced without using the import library. Whatever the hell that
means!
-U
-add-underscore
Specifies that when dlltool is creating the exports file it should prepend an underscore to the
names of the exported functions. The option is ignored for symbols with an explicit internal name
specification provided in a .def file.
Komentáře k této Příručce