Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
l
ld(1) ld(1)
sizes of object file structures being padded. By default the linker allocates 25% of pad-
ding space. This option is ignored if used without +ild or +ildrelink .
+ildrelink Perform an initialincremental link, regardless of the output load module.
In certain situations (for example, internal padding space is exhausted) the incremen-
tal linker is forced to perform an initial incremental link. The +ildrelink option
allows you to avoid such unexpected initial incremental links by periodically rebuild-
ing the output file.
+init function_name
Specify the initializer function.
+interp file Change the dld path to use the argument as the "interpreter" program instead of
the dld.sl.
+[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.
+nodefaultmap
This option tells the linker not to use the default memory map. The user needs to
supply a mapfile through the -k linker option.
+nodynhash Disables the default linker behavior of the +gst option to create the .dynhash sec-
tion for executables or shared libraries. Use this option to eliminate generation of
pre-computed hash table information for a library or an executable that is rarely used
with the global symbol table lookup scheme or for which the overhead of storing pre-
computed hash values is too high. This option has no effect when used with the -r
option.
+noenvvar Instructs the dynamic loader to not look at the LD_LIBRARY_PATH and
SHLIB_PATH environment variables at runtime. This is turned on if
ld +compat
is specified. This is turned off by default or if ld +std is specified. See
+compat
or +std. Generally, this option is used for secure programs (e.g. setuid).
+nosectionmerge
Used with the -r option to allow procedures to be positioned independently. The
default is to merge all procedures into a single section.
+paddata pagesize
Pads the data segment to a multiple of pagesize with zeros. This can improve page
allocation, thus reduce TLB misses.
+padtext pagesize
Pads the text segment to a multiple of pagesize with zeros. This can improve page
allocation, thus reduce TLB misses.
+pdzero Generates a zero page of 4K bytes at the beginning of the data data segment. It also
sets the default starting address of the data segment to 0x8000000000000000. This
option improves performance by reducing TLB misses by allowing the kernel to allo-
cate bigger data pages.
+stripunwind
Do not output the unwind table. This creates smaller executable sizes. Use this
option if you do not need the unwind table for debugging or C++ exception handling.
+tools Request that the application be linked for profiling with CXperf.
+vtype type Produces verbose output about the link operation. type can have the following values:
files
Dump info about each object file loaded.
heap
Dump info about the size of the heap used by a link.
HP-UX Release 11i: December 2000 − 11 − Section 1−−433
___
___