HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)
l
ld_ia(1)
Integrity Systems Only
ld_ia(1)
the linker to copy the debug information over to the output file and negate the effect
of the +objdebug compiler option. See also +nocopyobjdebug
.
+noprocelim_sym
symbol [+noprocelim_sym
symbol]...
Do not remove symbol when using dead code elimination (
+Oprocelim ). This
option can be used for hidden symbols as well as exported symbols.
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
+noprocelim_sym
option.
+nosectionmerge
With the -r option, allow procedures to be positioned independently. The default is
to merge all procedures into a single section.
+nosmartbind
This option is ignored.
+nosrcpos The compiler option +srcpos is the default.
+srcpos causes the compiler to gen-
erate part of the debug information even when the compiler option
-g is not specified.
The default
+srcpos option also causes part of the debug information to be always
copied over to the executable file, resulting in larger executables. +srcpos enables
the users to profile programs using tools like cxperf, caliper, and sin, even in
the absence of
-g compilation.
The linker option +nosrcpos can be used to override the default +srcpos com-
piler option, and strip these debug information during link time. +nosrcpos can
also be used with -g +objdebug to fully enforce the
+objdebug mode (i.e., leav-
ing the debug information in the object files).
+nosymb symbol
When building a shared library with -B symbolic, causes the linker to exclude the
specified symbol from -B symbolic 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).
+objdebugonly
Ignore debug information from non-objdebug objects or archives and proceed in
+objdebug mode. If you are debugging only files compiled with the +objdebug
option, +objdebugonly can improve link time by instructing the linker to bypass
the processing of debug information from files compiled with
+noobjdebug .
+origin shared_library_name
-lx
(Use only before the
-l option or the name of a shared library.) Cause the linker to
add $ORIGIN before the shared library name in the shared library list and set the
DF_ORIGIN flag for the output module. At runtime, the dynamic loader determines
the current directory of the parent module (object module, shared library, or execut-
able) and replaces $ORIGIN for that directory name. For example,
$ ld -dynamic main.o +origin libx.so -L /usr/lib/hpux32/
-lc
While the +origin option is available, the recommended way to specify $ORIGIN is
in the embedded path with the +b option, for example,
$ ld -dynamic main.o -L /usr/lib/hpux32/ -lc +b \$ORIGIN
For more details on $ORIGIN, use the +help option or see the HP-UX Linker and
Libraries User’s Guide manual.
+paddata pagesize
Pads the data segment to a multiple of pagesize with zeros. This can improve page
allocation, thus reduce TLB misses by allowing the kernel to allocate fewer, larger
data pages. Use of this option increases your output file size.
HP-UX 11i Version 2: December 2007 Update − 12 − Hewlett-Packard Company 509