HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)
l
ld_ia(1)
Integrity Systems Only
ld_ia(1)
-v Display verbose messages during linking. This option is equivalent to
+vtype all
(see the +vtype option for more information).
-w Suppress all warnings.
-x Strip local symbols from the output file. This reduces the size of the output file
without impairing the effectiveness of object file utilities. This option is incompatible
with the -r option and the +ild
options. (The incremental linker requires the parts
of the output load module which are stripped out with the
-x option.)
NOTE: Use of the
-x option might impair or prevent the use of a symbolic debugger
on the resulting program.
-y symbol Indicate each file in which symbol appears. You can specify more than one symbol on
the command line with multiple option-symbol pairs, that is, each symbol you specify
must be preceded by the
-y option.
-z Arrange for run-time dereferencing of null pointers to produce a
SIGSEGV signal.
(This is the complement of the
-Z
option. -Z is the default.)
-A name This option is ignored and generates a warning message.
-B bind Select run-time binding behavior of a program using shared libraries or the binding
preference in building a shared library. The most common values for bind are:
direct Create direct link between symbol references and shared libraries by
recording the name of the resolved shared library during symbol reso-
lution. This information is used during runtime to quickly resolve
symbols without searching through all currently loaded libraries.
-B direct will implicitly turn on symbolic binding (see -B sym-
bolic
) and disable dependent shared library processing.
Direct binding can be disable 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.
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.
HP-UX 11i Version 3: February 2007 − 4 − Hewlett-Packard Company 521