DLL Programmer's Guide for TNS/E Systems
Contents
DLL Programmer’s Guide for TNS/E Systems—527252-006
iv
5. Advanced DLL Facility Controls (continued)
5. Advanced DLL Facility Controls (continued)
How to Set Run-Time Attributes of Your Loadfile 5-6
Controlling the Load Image of DLLs 5-8
Using the Linker to Change an Existing Loadfile 5-9
Link-Time Operation 5-10
Running the Linker Through the Compiler 5-10
Naming Intermediate Linker Output Files 5-11
Controlling What Checks the Linker Makes and Reports 5-11
Load-Time Operation 5-13
Controlling the Loader’s Search Path at Load Time 5-13
Changing Run-Time Options for C and C++ Programs 5-14
6. Example Code
Example One 6-2
Example Two 6-7
A. Linker Options List
Glossary
Index
Figures
Figure 1-1. Symbol Resolution by Binding at Load Time 1-2
Figure 1-2. An Application Made Up Of a Program And The DLLs It Needs 1-4
Figure 1-3. Simplified Code Generation and Load Processes 1-6
Figure 1-4.
Loadfiles and Their libLists (To Create the Structure in Figure 1-2) 1-9
Figure 1-5.
Loadfiles of Figure 1-4 with a User Lib and Its Library Added 1-14
Figure 2-1.
DLL A Imports DLL D’s Symbols. 2-15
Figure 2-2. Splitting a DLL Into Two Parts 2-16
Figure 2-3. the New Symbol, Gamma, With New Function (Shaded), Replaces the
Old Gamma. 2-16
Figure 4-1.
PIC Code Generation 4-1
Figure 4-2. Development of the Globalized SearchList for the Program and Libraries
based on Figure 1-5 on page 1-14 4-3
Figure 4-3.
The Loadfiles of Figure 1-5, Now Showing the Use and Availability of
the Global Symbol xray 4-7
Figure 4-4.
Development of the Globalized SearchList for the Program and
Libraries in Figure 4-3 4-9
Figure 4-5.
Localized and Globalized Symbol Resolution 4-10
Figure 4-6. Intercepting a Call to Library D 4-14










