HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)
l
ld_ia(1)
Integrity Systems Only
ld_ia(1)
+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.
+padtext pagesize
Pads the text 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.
+pd size Request a particular virtual memory page size that should be used for data. Sizes of
4K, 16K, 64K, 256K, 1M, 4M, 16M, 64M, 256M
, D, and L are supported. A size of D
allows the kernel to choose what page size should be used. A size of L results in
using the largest page size available. The actual page size may vary if the requested
size cannot be fulfilled.
+pdzero This option is ignored.
+pgm name With the -P option, specify that name should be used as the look-up name in the
profile database file. The default is the basename of the output file (specified by the
-o option.) This option is incompatible with the +ild option.
+pi size Request a particular virtual memory page size that should be used for instructions.
See the +pd option for additional information.
+plabel_cache flag
This option is ignored.
+profilebucketsize
[16|32]
Specifies the size of the profiling sample counter buckets. Valid values are 16 or 32.
See gprof(1) for more details.
+s This option is the default. Indicate that at run-time, the dynamic loader can use the
environment variables SHLIB_PATH and LD_LIBRARY_PATH to locate shared
libraries needed by the executable output file that allow dynamic library searching.
Shared libraries that allow dynamic library searching either contain an internal name
without the "/" (slash) character (for example, the base name of the shared library
pathname) or have no internal name and were specified with either -l or -L, or just
the base name of the shared library pathname. The environment variables should be
set to a colon-separated list of directories.
In compatibility mode using the +compat option, if both +s and +b are used, their
relative order on the command line indicates which path list is searched first (see the
+b option). In standard mode (default mode or using the +std option), the order of
+s and +b does not affect the dynamic loader search order and the environment vari-
ables are always searched first.
HP-UX 11i Version 3: February 2007 − 12 − Hewlett-Packard Company 529