ld(1)

ld(1)

sizes of object ®le structures being padded. By default the linker allocates 25% of padding space. This option is ignored if used without +ild or +ildrelink.

+ildrelink Perform an initial incremental link, regardless of the output load module.

In certain situations (for example, internal padding space is exhausted) the incremental linker is forced to perform an initial incremental link. The +ildrelink option allows you to avoid such unexpected initial incremental links by periodically rebuilding the output ®le.

+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 ®les from archive libraries. +noforceload is the default Ð loads only the required object ®les 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 map®le through the -klinker option.

+nodynhash Disables the default linker behavior of the +gst option to create the .dynhash section 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 precomputed hash values is too high. This option has no effect when used with the -roption.

+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 speci®ed. This is turned off by default or if ld +std is speci®ed. See +compat or +std. Generally, this option is used for secure programs (e.g. setuid).

+nosectionmerge

Used with the -roption 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 allocate 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 pro®ling with CXperf.

+vtype type Produces verbose output about the link operation. type can have the following values:

files

Dump info about each object ®le loaded.

heap

Dump info about the size of the heap used by a link.

HP-UX Release 11i: December 2000

− 11 −

Section 1433

l