HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)
l
ld_ia(1)
Integrity Systems Only
ld_ia(1)
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.
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 refer-
ence.
Since -B nonfatal suppresses messages about unresolved sym-
bols, 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 expli-
cit load using shl_load() or dlopen() .
nodirect Disallow direct binding. Only a "direct hint" is recorded for references
to libraries marked for lazy loading. This is the default behavior.
nonfatal If also using -B immediate , for code symbols that could not be
bound at program startup, defer binding them until they are refer-
enced. See description of -B immediate above.
Since -B nonfatal suppresses messages about unresolved sym-
bols, 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. This option causes all
references in a shared library to be resolved internally if possible.
Such internally-resolved symbols are still externally visible.
By default (without the -B symbolic option), references are either
resolved to a symbol definition in the same compilation unit or to the
most visible definition. The first load module (a.out or shared
library) that exports that symbol contains the most visible definition.
More than one load module can define and export the same symbol.
References to a symbol in a shared library can be resolved to a
definition in another shared library even if that symbol is defined in
the shared library. You can use this option to enforce that all refer-
ences in the shared library use their own definitions, if defined in the
shared library.
See the +e and +ee options for more information about using -B
symbolic
with those options.
verbose Display verbose messages when binding symbols. This is the default
except when -B nonfatal is specified. In that case, -B ver-
bose
must be explicitly specified to get verbose messages.
Use the +help option or see the HP-UX Linker and Libraries User’s Guide manual
for more information on the uses of binding modes.
-C n This option is ignored and generates a warning message.
-D offset Set (in hexadecimal) the starting address of the data segment. This option is useful
with kernel and embedded applications. The default address for 64-bit mode is
0x6000000000000000 and the default address for 32-bit mode is 0x40008000.
502 Hewlett-Packard Company − 5 − HP-UX 11i Version 2: December 2007 Update