HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)

l
ld(1) ld(1)
+nosymb symbol
When building a shared library with -Bsymbolic, causes the linker to exclude the
specified symbol from
-Bsymbolic symbol resolution.
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
+nosymb
option.
symbol can also be a regular expression that matches multiple symbol names. Regu-
lar expressions are described in regexp(5).
+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 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 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.
libraries
Dump info about libraries searched.
procelim
Dump info about sections that have been rejected by the +Oprocelim option
sections
Dump info about each input section added to the output file.
symbols
Dump info about global symbols referenced/defined from/in the input files.
all Dumps all of the above info. Same as -v.
Defaults
Unless otherwise directed, ld names its output a.out. The -o option overrides this. Executable output
files are of type SHARE_MAGIC . The default state of -a is to search shared libraries if available, archive
libraries otherwise. The default bind behavior is deferred.
The default value of the -Z/-z option is -Z.
For 64-bit mode, +std is on by default.
Incremental linking with ld (64-bit Mode ONLY)
In the edit-compile-link-debug development cycle, link time is a significant component. The incremental
linker (available through the +ild and +ildrelink options) can reduce the link time by taking advan-
tage of the fact that you can reuse most of the previous version of the program and that the unchanged
object files do not need to be processed. The incremental linker allows you to insert object code into an out-
put file (executable or shared library) that you created earlier, without relinking the unmodified object files.
The time required to relink after the initial incremental link depends on the number of modules you
modify.
HP-UX 11i Version 1: September 2005 15 Hewlett-Packard Company Section 1451