Version Control with Shared Libraries......................................................................................
110
When to Use Shared Library Versioning..............................................................................
Maintaining Old Versions of Library Modules......................................................................
111
Library-Level Versioning.....................................................................................................
How to Use Library-Level Versioning ..............................................................................
Creating a New, Incompatible Version of the Library ......................................................
112
Migrating an Existing Library to Use Library-Level Versioning.............................................
The +h Option and Internal Names...............................................................................
File System Links to Shared Libraries...................................................................................
Using shl_load(3X) with Library-Level Versioning...................................................................
113
Intra-Library Versioning (PA-RISC only).................................................................................
The Version Number Compiler Directive.........................................................................
Shared Library Dependencies and Version Control...........................................................
114
Adding New Versions to a Shared Library......................................................................
Specifying a Version Date............................................................................................
115
Switching from Archive to Shared Libraries...............................................................................
Relying on Undocumented Linker Behavior ..........................................................................
Absolute Virtual Addresses................................................................................................
116
Stack Usage....................................................................................................................
Version Control................................................................................................................
Debugger Limitations........................................................................................................
Using the chroot Command with Shared Libraries.................................................................
117
Profiling Limitations..........................................................................................................
Summary of HP-UX Libraries...................................................................................................
Caution When Mixing Shared and Archive Libraries.................................................................
118
Example 1: Unsatisfied Symbols.........................................................................................
Example 2: Using shl_load(3X)..........................................................................................
120
Example 3: Hidden Definitions..........................................................................................
122
Using Shared Libraries in Default Mode...................................................................................
124
Internal Name Processing.................................................................................................
125
Dynamic Path Searching for Shared Libraries.......................................................................
126
Shared Library Symbol Binding Semantics...........................................................................
Link-Time Symbol Resolution in Shared Libraries ..............................................................
Resolution of Unsatisfied Shared Library References.........................................................
127
Promotion of Uninitialized Global Data Items.............................................................
128
Symbol Searching in Dependent Libraries..................................................................
129
Mixed Mode Shared Libraries............................................................................................
130
IPF Library Examples........................................................................................................
131
Library Example: Creating an IPF Compatibility Mode Shared Library................................
Library Example: Creating an IPF Standard Mode Shared Library......................................
132
Library example: IPF Dynamic Path Searching.................................................................
Library Example: IPF Compatibility Mode Link.................................................................
133
Library Example: Using IPF Compatibility and Standard Shared Libraries............................
Comparing Breadth-first and Depth-first Search in IPF/PA-64 Mode....................................
Library Example: Using RPATH with Standard Mode Shared Library...................................
134
Linking Libraries with +b pathlist....................................................................................
Library Example: Linking to Libraries with +b path_list in IPF/PA-64 Mode..........................
Library Example: Linking to Libraries with +b path_list in PA-32 Mode................................
135
7 Shared Library Management Routines.......................................................
136
Shared Library Management Routine Summaries.......................................................................
The dlopen Routines Summary...........................................................................................
The shl_load Routine Summary..........................................................................................
137
Related Files and Commands.............................................................................................
Shared Library Header Files...................................................................................................
Contents 7