ld_pa.1 (2010 09)
l
ld_pa(1) PA-RISC Systems Only
ld_pa(1)
+ild Specify incremental linking.
If the output file does not exist, or if it was created without the
+ild option, the
linker performs an initial incremental link. The output file produced is suitable for
subsequent incremental links. The incremental link option is valid for both execut-
able and shared library links.
NOTE: The HP WDB symbolic debugger only supports debugging of incrementally
linked load modules that you create with the
+objdebug compiler option enabled.
(The HP DDE debugger does not support the
+ild option.)
To debug incrementally linked binaries, they should be compiled and linked with
both
+ild and +objdbg.
If you specify one of the following incompatible
ld option with +ild, the linker
emits a warning message and ignores the
+ild
option.
• The
-r option: create a relocatable object file.
• Strip options:
-s and -x strip the output file. (The incremental linking
requires the parts of the output load module which are stripped out with these
options.)
• Optimization options:
-I, -O, -P, -PD, -PF, +df file ,
+fb, +fbu, +fbs, +pgm
name, and +Oprocelim.
The following options are compatible with the
+ild option with limitations:
•
-D offset, -R offset
Set the origin for the data and text segments. If you change the offset after the
initial incremental link, the linker performs an initial incremental link automati-
cally.
•
-k mapfile
provide a non-default mapfile. The user specified mapfile specifications are per-
mitted with the +ild option. But you should not modify the mapfile after the ini-
tial incremental link. If the mapfile is modified after the initial link, an initial
incremental 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
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 incre-
mental linker is forced to perform an initial incremental link. The
+ildrelink
option allows you to avoid such unexpected initial incremental links by periodically
rebuilding 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
binding 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 execu-
tion.
Dependent libraries of
+lazyload shared libraries will not be processed during
link time, unless they are explicitly specified on the link line.
HP-UX 11i Version 3: September 2010 − 15 − Hewlett-Packard Company 15