50 Chapter 2
What Happens When You Compile and Link a Program
Linker Thread-Safe Features
Linker Thread-Safe Features
Beginning with the HP-UX 10.30 release, the dynamic loader (dld.sl)
and its application interface library (libdld.sl) are thread-safe.
Also, beginning with the HP-UX 10.30 release, the linker toolset provides
thread local storage support in:
ld — the link editor
dld.sl — the shared library dynamic loader
crt0.o — the program startup file
Thread local storage (also called thread-specific data) is data specific to a
thread. Each thread has its own copy of the data item.
NOTE A program with thread local storage is only supported on systems
running HP-UX 10.30 or later versions of the operating system.
NOTE Use of the__thread keyword in a shared library prevents that shared
library from being dynamically loaded, that is, loaded by an explicit call
to shl_load().
For More Information:
See your HP compiler documentation to learn how to create thread
local storage data items with the _thread compiler directive.
See Programming with Threads on HP-UX for information on
threads.