HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)
l
ld_pa(1)
PA-RISC Systems Only
ld_pa(1)
The +FP option supports the following modes (upper case flag enables; lower case flag
disables):
V (v) Trap on invalid floating-point operations
Z (z) Trap on divide by zero
O (o) Trap on floating-point overflow
U (u) Trap on floating-point underflow
I (i) Trap on floating-point operations that produce inexact results.
D (d) Enable sudden underflow (flush to zero) of denormalized values.
RU Enable rounding upward (toward +Infinity).
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
HP-UX 11i Version 2: December 2007 Update − 11 − Hewlett-Packard Company 529