ld_pa.1 (2010 09)
l
ld_pa(1) PA-RISC Systems Only
ld_pa(1)
call to pxdb.
+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. At run-
time, the dynamic loader determine the current directory of the parent module
(shared library or executable) and replaces $ORIGIN for that directory name.
Example:
$
ld -dynamic main.o +origin libx.sl -L /usr/lib/ -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/ -lc +B $ORIGIN
For more details on $ORIGIN, use the
+help option or see the HP-UX Linker and
Libraries User’s Guide.
+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 will
result in using the largest page size available. The actual page size may vary if the
requested size cannot be fulfilled.
+pgm name Used together with the -I option, this option specifies that name should be used to
name the dataset corresponding to this program when writing profile data into the
database file. The default look-up name used is the name of the program as
obtained from argv[0] at runtime.
Used together with the
-P option, this option specifies that name should be used as
the look-up name (dataset name as mentioned above) 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.
+profilebucketsize
size
Controls the size of profiling counters. The acceptable value for this variable is 16
or 32. A warning is issued if the value specified is other than 16 or 32. The default
value of the counter is 16, which is used if a valid value is not specified. Value at
linktime can be overridden by using
PROFILE_BUCKET_SIZE
environment vari-
able. See the description in gprof(1) for more details.
+protect This option turns on the linkage table protection mode. When this option is used,
the linker aligns the linkage table within page boundaries so that no other data
resides in the same page. At runtime, the pages containing the linkage table are
marked READ_ONLY.
This option turns on immediate binding. For more information about immediate
binding, see
immediate binding under option -B.
The options incompatible with this option are:
+mergeseg, +filter, and
+lazyload.
+s Indicates that at run-time, the shared library loader can use the environment vari-
able SHLIB_PATH and LD_LIBRARY_PATH (64-bit only) to locate shared
libraries needed by the executable output file that were specified with either the -l
or -l: option. The environment variables should be set to a colon-separated list of
directories. If both +s and +b are used, their relative order on the command line
indicates which path list will be searched first (see the +b option).
+std This option is ignored for 32-bit links. Turns on standard mode, which is the
default in 64-bit mode. The options turned on with this option is: -dynamic.
Options turned off or ignored when this option is specified are: +compat,
+noenvvar, and -noshared.
10 Hewlett-Packard Company − 10 − HP-UX 11i Version 3: September 2010