HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)
l
ld_pa(1)
PA-RISC Systems Only
ld_pa(1)
• -D offset, -R offset
Set the origin for the data and text segments. If you change the offset after the ini-
tial incremental link, the linker performs an initial incremental link automatically.
• -k mapfile
provide a non-default mapfile. The user specified mapfile specifications are permit-
ted 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 incre-
mental link is performed automatically.
+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.
+[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
environ-
ment 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.
+nobss Pads the data segment with zeros, so that the data segment can be mapped with a sin-
gle call to mmap at runtime. Normally, data segments require one mmap call for file-
backed storage and a second mmap call for blank static storage (bss). Use of this
option increases your output file size.
+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
HP-UX 11i Version 2: December 2007 Update − 15 − Hewlett-Packard Company 533