Binding of References
eld Manual—527255-009
3-12
Creating an Import Library at the Same Time That a
DLL is Created
there similarly is a
-must_use_iname
option instead of
-must_use_oname
. An
existing file of the same name is not replaced if the linker terminates with any errors.
The
-change incomplete on
option can be used to demote an import library from
complete to incomplete. It is not possible to demote the import library that represents
the implicit libraries. It is not possible to “un-demote” an incomplete import library so
that it becomes a complete import library.
The following subsections also tell how the linker decides whether to include DWARF
symbol table information in an import library when it creates it. As described in
Updating Or Stripping DWARF Symbol Table Information
on page 4-14, the
-strip
option may be used to remove DWARF symbol table information from an existing
loadfile or import library.
Creating an Import Library at the Same Time That a DLL is
Created
The following option:
-import_lib <filename>
tells the linker to create an import library at the same time that it creates the
corresponding DLL. If you use this option, and the DLL has DWARF symbols
information, then so will the import library. If the DLL is being created without DWARF
symbols information, through the use of the
-s
or
-x
options, then the import library
will also not have DWARF symbols information.
The following option:
-import_lib_stripped <filename>
similarly tells the linker to create an import library, but in this case the import library
does not contain DWARF symbol table information, even if the DLL does.
Creating Import Libraries From Existing DLLs
The following option:
-make_import_lib <filename>
tells the linker to make an import library out of one or more existing DLLs. The other
filenames in the command stream are the DLLs that the import library will represent.
eld
reports an error if you specify
-make_import_lib
without specifying any DLLs
in the command stream.
If all the DLLs have the
EF_TANDEM_IMPLICIT_LIB
bit set in their ELF headers, the
linker creates the import library that represents the implicit libraries. In this case, the
EF_TANDEM_IMPLICIT_LIB
bit is set in the import library that the linker is creating, it
is given the DLL name “__IMPLICIT_LIB__”, and
eld
reports an error if there is any
overlap among the names of the symbols exported by the various input DLLs, unless
all the copies of the symbol have the STO_MULTIPLE_DEF_OK bit set. It is also an
error if any of the implicit DLL's is not preset. If any of the implicit DLL's is preset, but
Summary of Contents for eld
Page 4: ......
Page 8: ...Contents eld Manual 527255 009 iv ...
Page 12: ...What s New in This Manual eld Manual 527255 009 viii Changes to the 527255 005 Manual ...
Page 34: ...Introduction to eld eld Manual 527255 009 1 14 Example of Use ...
Page 54: ...eld Input and Output eld Manual 527255 009 2 20 Using Archives ...
Page 98: ...Other eld Processing eld Manual 527255 009 4 20 Merging Source RTDUs ...
Page 242: ...Output Listings and Error Handling eld Manual 527255 009 6 132 Glossary of Errors ...