DLL Programmer's Guide for TNS/R Systems

Contents
DLL Programmer’s Guide for TNS/R Systems522203-002
iv
5. Advanced DLL Facility Controls (continued)
5. Advanced DLL Facility Controls (continued)
How to Set Run-Time Attributes of Your Loadfile 5-5
Controlling the Load Image of DLLs 5-7
Using the Linker to Change an Existing Loadfile 5-8
Link-Time Operation 5-8
Running the Linker Through the Compiler 5-8
Naming Intermediate Linker Output Files 5-10
Controlling What Checks the Linker Makes and Reports 5-10
Load-Time Operation 5-11
Controlling the Loader’s Search Path at Load Time 5-11
Changing Run-Time Options for C and C++ Programs 5-13
6. Sample Sessions and Usage Notes
Sample Session One 6-2
Sample Session Two 6-5
Sample Session Three 6-8
Usage Notes 6-14
No Support for DLL Tools on UNIX Systems 6-14
The Impact of DLLs on Existing TNS/R Product Software 6-14
Notes on Debugging 6-15
Notes on C++ 6-16
Guardian Fundamentals 6-17
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-8
Figure 1-5. Loadfiles of Figure 1-4 with a User Lib and Its Library Added 1-12
Figure 2-1. DLL A Imports DLL D’s Symbols. 2-14
Figure 2-2. Splitting a DLL Into Two Parts 2-15
Figure 2-3. the New Symbol, Gamma, With New Function (Shaded), Replaces the
Old Gamma. 2-15
Figure 4-1. PIC Code Generation 4-1