HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)
l
ld_ia(1)
Integrity Systems Only
ld_ia(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 less than
20% of padding 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.
+init function_name
Specify the initializer function to be invoked in reverse order, the order the functions
appear right to left on the command line.
You can specify more than one initializer function on the command line with multiple
option-symbol pairs, that is, each initializer function you specify must be preceded by
the +init option.
+instrumenter name
Specify which instrumenter to use. Only sin or caliper are recognized. Default
is caliper.
If sin is specified, the linker invokes /opt/langtools/bin/sin
automatically.
If
caliper is specified, /opt/langtools/bin/caliper
is automatically
invoked by the dynamic loader when the program is executed.
+interp filename
Change the dld path to use the program specified by filename for the "interpreter"
program as the dynamic loader. This is useful when using special versions of
dld.so for debugging.
The default path for 32-bit programs is:
/usr/lib/hpux32/uld.so:/usr/lib/hpux32/dld.so
, and for 64-bit pro-
grams is:
/usr/lib/hpux64/uld.so:/usr/lib/hpux64/dld.so
.
+interposer
Used only when building a shared library. This will create a shared library that can
be used for interposition. When resolving references for an application with direct
bind information (see
-B direct), the dynamic loader will search interposer
libraries first. If the symbol cannot be resolved to any interposing libraries, the direct
binding information will be used.
+k Direct the linker to only create an executable if there were no errors encountered dur-
ing the link. If there were errors found (system errors or unresolved references), the
output file will be removed.
+[no]lazyload
Enable [disable] lazy loading of shared libraries. For +lazyload libraries, loading is
deferred until a reference is made to that library during execution. Both the +lazy-
load
and +nolazyload options may appear on the link line at the same time.
The mode that is specified, either explicitly or by default, remains on for all subse-
quent libraries on the link line until the next occurrence of the one of these two
options.
HP-UX 11i Version 2: December 2007 Update − 10 − Hewlett-Packard Company 507