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)
-w Suppress all warnings.
+alloc_hidden_commons
Force storage allocation for hidden "common" symbols in
-r output. This is similar to
the
-d option, which allocates storage for all "common" symbols. If
+alloc_hidden_commons
is specified in combination with the
-d option, -d will
take precedence.
+allowrorelocs
(Kernel virtual environment support only.) Allow generation of dynamic relocations in
read-only sections such as .text and .rodata. Normally the linker emits an error
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]concatrpath
[Disable] Enable concatenation of search path specified using
+b path_list .
+[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.
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:
532 Hewlett-Packard Company 14 HP-UX 11i Version 2: December 2007 Update