ld_ia.1 (2010 09)

l
ld_ia(1) Integrity Systems Only
ld_ia(1)
$ 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.
+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 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 vari-
ables 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 environ-
ment variables are always searched first.
+rpathfirst
This option will cause the paths specified in RPATH (embedded path) to be used
before the paths specified in LD_LIBRARY_PATH or SHLIB_PATH, in searching
for shared libraries. This changes the default search order of LD_LIBRARY_PATH,
SHLIB_PATH, and RPATH (embedded path).
HP-UX 11i Version 3: September 2010 13 Hewlett-Packard Company 13