HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)

l
ld(1) ld(1)
message when a dynamic relocation is required in read-only sections. See Kernel Vir-
tual Environment Support for more information.
+[no]allowunsats
+allowunsats
Does not flag errors if the resulting output file has unsatisfied sym-
bols. This is the default for relocatable links and shared library builds.
+noal-
lowunsats
Flags an error if the resulting output file has unsatisfied symbols. This
is the default for program files.
+[no]defaultrpath
+defaultrpath
is the default. Include any paths that are specified with
-L in the
embedded path, unless you specify the
+b option. If you use
+b, only the path list
specified by
+b is in the embedded path.
The +nodefaultrpath
option removes all library paths that were specified with
the
-L option from the embedded path. The linker searches the library paths
specified by the -L option at link time. At run time, the only library paths searched
are those specified by the environment variables
LD_LIBRARY_PATH and
SHLIB_PATH , library paths specified by the
+b linker option, and finally the default
library paths.
+[no]forceload
+forceload
loads all object files from archive libraries. +noforceload is the
default — loads only the required object files from archive libraries. The mode that is
selected, either explicitly or by default, remains on until it is changed.
+hideallsymbols
This option is used to prevent all the symbols from being exported unless explicitly
exported with the +e.
+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 executable
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.
-r 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, +Opro-
celim
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
initial incremental link. If the mapfile is modified after the initial link, an initial
incremental link is performed automatically.
HP-UX 11i Version 1: September 2005 13 Hewlett-Packard Company Section 1449