HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)

l
ld_pa(1)
PA-RISC Systems Only
ld_pa(1)
+plabel_cache
Enable the plabel caching mechanism. Use this option with the
+gst option.
This option is only effective with C++. In C++ applications, the dynamic loader needs
to repetitively access
PLABEL information (import stub). In order to make this access
faster, the dynamic loader uses the global symbol table structure to also contain
PLA-
BEL
entries. This behavior is enabled when the
PLABEL_CACHE ag is set in the
dl_header structure (enabled
ld +plabel_cache enable a.out
or chatr
+plabel_cache enable a.out
).
PA-RISC 64-Bit Options
-k filename Specify a mapfile that describes the output file memory map.
The user specified mapfile specifications are permitted 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.
Please refer to HP-UX Linker and Libraries User’s Guide guide for more information.
Also see
+nodefaultmap
.
-symbolic symbol
When building a shared library, causes the linker to resolve all references to the
specified symbol to the symbol defined in the library. This option is similar to
-B
symbolic
, but operates on a per symbol basis.
You can specify more than one symbol on the command line with multiple option-
symbol pairs, that is, each symbol you specify must be preceded by the -symbolic
option.
symbol can also be a regular expression that matches multiple symbol names. Regu-
lar expressions are described in regexp(5).
-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]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.
550 Hewlett-Packard Company 13 HP-UX 11i Version 3: February 2007