HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)
l
ld(1) ld(1)
direct
Create a direct link between symbol references and shared libraries by recording
the name of the resolved shared libray during symbol resolution. This informa-
tion is used during runtime to quickly resolve symbols without searching through
all currently loaded libraries.
-B direct implicitly turns on symbolic binding (see
-B symbolic) and dis-
ables dependent shared library processing.
Direct binding can be disabled during runtime by setting the
LD_NODIRECTBIND
environment variable.
deferred
Bind addresses on first reference rather than at program start-up time. This is
the default.
group
Mark the shared library so that it behaves as if loaded with
RTLD_GROUP flag
to
dlopen(). This does not affect the dependent shared libraries.
NOTE: The -B group binding mode is currently supported only for 64-bit
applications.
immediate
Bind addresses of all symbols immediately upon loading the library. Commonly
followed by -B nonfatal to allow procedure calls that cannot be resolved at
program start-up to be resolved on first reference.
Since -B nonfatal suppresses messages about unresolved symbols, also
specify -B verbose to display those messages.
See the example below.
lazydirect
Only record direct bind information to shared libraries marked for lazy loading.
See +[no]lazyload.
nodelete
Mark the shared library so that an explicit unload using dlclose() or
shl_load() returns success silently without detaching the shared library
from the process. Subsequently, the shared library handle is valid only for
shl_findsym() . It stays invalid for dlsym(), dlclose() , and
shl_unload() until the next explicit load using shl_load() or dlo-
pen()
.
nodirect
Disallow direct binding. Only a "direct hint" is recoreded for references to
libraries marked for lazy loading. This is the default behaivor.
nonfatal
If also using -B immediate, for code symbols that could not be bound at pro-
gram startup, defer binding them until they are referenced. See description of
-B immediate above.
Since -B nonfatal suppresses messages about unresolved symbols, also
specify -B verbose to display those messages.
restricted
Causes the search for a symbol definition to be restricted to those symbols that
were visible when the library was loaded.
symbolic
Used only when building a shared library (with the -b option), this option causes
all unresolved symbols inside a library to be resolved internally if possible. By
default, unresolved symbols are resolved to the most visible definition in the
library or outside the library.
NOTE: Do not use this option while building aC++ shared libraries on Itanium-
based systems. Use the aC++ option -B protected_def.
Section 1−−440 Hewlett-Packard Company − 4 − HP-UX 11i Version 1: September 2005