Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Linker and Libraries User's Guide: HP 9000 Computers

Chapter 5 Creating and Using Libraries

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Table of Contents

Overview of Shared and Archive Libraries
What are Archive Libraries?
Example
What are Shared Libraries?
The Dynamic Loader dld.sl
Default Behavior When Searching for Libraries at Run Time
Caution on Using Dynamic Library Searching
Example Program Comparing Shared and Archive Libraries
Shared Libraries with Debuggers, Profilers, and Static Analysis
Creating Archive Libraries
Overview of Creating an Archive Library
Contents of an Archive File
Example of Creating an Archive Library
Replacing, Adding, and Deleting an Object Module
Summary of Keys to the ar(1) Command
crt0.o
Archive Library Location
Creating Shared Libraries
Creating Position-Independent Code (PIC)
Creating the Shared Library with ld
Shared Library Dependencies
Updating a Shared Library
Shared Library Location
Improving Shared Library Performance
Version Control with Shared Libraries
When to Use Shared Library Versioning
Maintaining Old Versions of Library Modules
Library-Level Versioning
Intra-Library Versioning
Switching from Archive to Shared Libraries
Library Path Names
Relying on Undocumented Linker Behavior
Absolute Virtual Addresses
Stack Usage
Version Control
Debugger Limitations
Using the chroot Command with Shared Libraries
Profiling Limitations
Summary of HP-UX Libraries
Caution When Mixing Shared and Archive Libraries
Example 1: Unsatisfied Symbols
Example 2: Using shl_load(3X)
Example 3: Hidden Definitions
Summary of Mixing Shared and Archive Libraries
Using Shared Libraries in 64-bit mode
Internal Name Processing
Dynamic Path Searching for Shared Libraries
Shared Library Symbol Binding Semantics
Mixed Mode Shared Libraries
64-bit Mode Library Examples
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.