HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)
l
ld(1) ld(1)
+ildnowarn Suppress incremental-linking related warnings. By default, the linker issues all
incremental-linking related warnings. This option is ignored if used without
+ild or
+ildrelink .
+ildpad percentage
Control the amount of padding percentage the incremental linker allocates, relative to
sizes of object file structures being padded. By default the linker allocates 25% of pad-
ding space. This option is ignored if used without
+ild or +ildrelink .
+ildrelink Perform an initial incremental link, regardless of the output load module.
In certain situations (for example, internal padding space is exhausted) the incremen-
tal linker is forced to perform an initial incremental link. The
+ildrelink option
allows you to avoid such unexpected initial incremental links by periodically rebuild-
ing the output file.
+interposer
Used only when building a shared library. This creates a shared library that can be
used for interposition. When resolving references for an application with direct bind-
ing information (see
-B direct), the dynamic loader searches interposer libraries
first. If the symbol cannot be resolved to any interposing libraries, the direct binding
information is used.
-k filename specifies a mapfile that describes the output file memory map.
The user specified mapfile specifications are permitted with the +ild option. But you
should not modify the mapfile after the initial incremental link. If the mapfile is
modified after the initial link, an initial incremental link is performed automatically.
Please refer to HP-UX Linker and Libraries User’s Guide guide for more information.
Also see
+nodefaultmap.
+[no]lazyload
Enable [disable] lazy loading of shared libraries. Loading of shared libraries specified
as +lazyload is deferred until a reference is made to it during execution.
Dependent libraries of +lazyload shared libraries will not be processed during link
time, unless they are explicitly specified on the link line.
Lazy loading can be disable during runtime by setting the
LD_NOLAZYLOAD
environment variable.
+linkersyms
(Kernel virtual environment support only.) Create linker-generated symbols even if
building a shared library. The kernel with virtual environment support is built with
the -b option which by default does not create linker-generated symbols in shared
libraries. See Kernel Virtual Environment Support for more information.
+nodefaultmap
This option tells the linker not to use the default memory map. The user needs to
supply a mapfile through the -k linker option.
+nodynhash Disables the default linker behavior of the +gst option to create the .dynhash sec-
tion for executables or shared libraries. Use this option to eliminate generation of
pre-computed hash table information for a library or an executable that is rarely used
with the global symbol table lookup scheme or for which the overhead of storing pre-
computed hash values is too high. This option has no effect when used with the -r
option.
+noenvvar Instructs the dynamic loader to not look at the LD_LIBRARY_PATH , SHLIB_PATH
and $ORIGIN environment variables at runtime. This is turned on if ld +compat
is specified. (The dynamic loader, however, uses the LD_PRELOAD environment
variable with the +noenvvar option.) This is turned off by default or if ld +std
is specified. See +compat or +std. Generally, this option is used for secure pro-
grams (e.g. setuid).
+nosectionmerge
Used with the -r option to allow procedures to be positioned independently. The
default is to merge all procedures into a single section.
Section 1−−450 Hewlett-Packard Company − 14 − HP-UX 11i Version 1: September 2005