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)
+cg pathname Specify the use of pathname as the code generator for compiling ISOMs to SOMs. See
the discussion of profile based optimization in the HP-UX Linker and Libraries Online
User’s Guide for more information.
+dpv Display verbose messages regarding procedures which have been removed due to dead
procedure elimination. The symbol name, input object file, and the size (in bytes) of
the deleted procedure are displayed. The total size (in bytes) of the deleted pro-
cedures is also displayed.
+ea filename Exports all the symbols in the file filename.
+gstbuckets size
Request a particular number of buckets per entry using the global symbol table hash
mechanism. The default value is 3. The value can be overridden at runtime by set-
ting the _HP_DLDOPTS environment variable to the value
-symtab_buckets
number. You can set the value using
chatr +gstbuckets size file.
+nosmartbind
Disable SmartBind when binding a shared library. With this option enabled, the
linker places all symbols in the link into a single SmartBind module instead of placing
each .o file in its own module.
+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 flag 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
-emit_relocs
Preserve compiler generated relocation sections in output file
-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.
-nbucket bucketsizetype
Specify the bucketsizetype
to optimize the hash table size (number of hash buck-
ets). The valid values for bucketsizetype are:
pow2 Sets the number of hash buckets to the highest power of 2 that is less
than the number of dynamic symbols in the library.
prime Sets the number of hash buckets to the largest prime number that is less
than the number of dynamic symbols in the library.
default Sets the number of hash buckets to the default size. (The default size is
currently half the number of dynamic symbols in the library).
-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).
HP-UX 11i Version 2: December 2007 Update − 13 − Hewlett-Packard Company 531