HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)
l
ld_pa(1)
PA-RISC Systems Only
ld_pa(1)
RD Enable rounding downward (toward -Infinity).
RZ Enable rounding toward zero (truncate, chop).
RN Enable rounding to nearest (the default).
NOTE: Enabling sudden underflow is an undefined operation on PA-RISC
1.0-based systems, but it is defined on all subsequent versions of PA-RISC.
Selecting this flag enables sudden underflow only if it is available on the
processor being used at run-time.
More than one mode can be specified with a comma separated list. For example:
+FP D,O,V,RZ
specifies sudden underflow, trapping on overflow and invalid, and rounding toward
zero. The commas and the space between +FP
and the modes may be omitted. Thus,
+FPDOVRZ is equivalent to +FP D,O,V,RZ.
To dynamically change these settings at run-time, see fesettrapenable(3M),
fesetflushtozero(3M), and fesetround(3M).
+I symbol Specify the name of the initializer function when building a shared library. A shared
library may have multiple initializers specified. Initializers are executed in the order
that they are specified. You can specify more than one initializer, but each must be
preceded by +I. For more details on the initializer function, refer to the
+help
option or the HP-UX Linker and Libraries User’s Guide manual.
+O[no]fastaccess
Enable [disable] fast access to global data. The linker rearranges the data to further
reduce the number of ADDIL instructions in the executable.
This optimization may reveal some subtle programming errors related to assumptions
about data layout. This optimization can occur at optimization levels 2, 3 and 4. The
default is +Onofastaccess at optimization levels 2 and 3, and
+Ofastaccess
at optimization level 4.
Using the +Ofastaccess option in the presence of debug information generates a
warning message and can cause corruption of the debug information. Avoid using
+Ofastaccess with the -g option.
This option is accepted but ignored by the 64-bit ld.
+O[no]procelim
Enable [disable] the elimination of procedures and data that are not referenced by the
application. The default is +Onoprocelim .
Procedure and data elimination can occur at any optimization level, i ncluding level 0.
The elimination occurs on a per section basis; the section is removed only if all
procedures/data in the section are unreferenced. For more details refer to the
+help
option or the HP-UX Linker and Libraries User’s Guide manual. This option is incom-
patible with the
+ild option.
Note that compilers may set +Oprocelim for higher optimization levels; refer to
compiler documentation for detail.
+Oreusedir= dir
Specify the name of the directory to use as the reuse repository for the object code
reuse feature. This directory holds the compiled object files for reuse. dir can be an
absolute or relative path to directory where you invoked the linker. The
+Oreusedir option shortens link time by not recompiling intermediate object code
to object code when using +O4 or profile-based optimization.
+Oselectivepercent n
Instructs the interprocedural optimizer driver to pass the first n percent of the object
files to the high level optimizer for interprocedural optimizations such as inlining.
+Oselectivesize size
Instructs the interprocedural optimizer driver to pass the first k routines to the high
level optimizer for interprocedural optimization where the size of k routines are
approaching but less than size.
548 Hewlett-Packard Company − 11 − HP-UX 11i Version 3: February 2007