HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)
l
ld(1) ld(1)
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 that are not referenced by the applica-
tion. The default is +Onoprocelim . Procedure elimination can occur at any optim-
ization level, including level 0. For more details refer to the
+help option or the
HP-UX Linker and Libraries User’s Guide manual. This option is incompatible with
the
+ild option.
+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.
+OselectiveO3
Instructs the interprocedural optimizer driver to compile the routines not included in
the +O4 list to be compiled at +O3.
+Ostaticprediction
Meaningful only on PA-RISC 2.0 architecture, this option sets the branch prediction
bit in the output executable file’s auxiliary header.
PA-RISC 32-Bit Options
-A name
This option specifies incremental loading. Linking is arranged so that the resulting object can be
read into an already executing program. The argument name specifies a file whose symbol table
provides the basis for defining additional symbols. Only newly linked material is entered into
the text and data portions of a.out, but the new symbol table reflects all symbols defined before
and after the incremental load. Also, the -R option can be used in conjunction with -A, which
allows the newly linked segment to commence at the corresponding address. The default start-
ing address is the old value of _end. The -A option is incompatible with -r and -b. Also
note that a program that dynamically loads code with ld -A cannot use shared libraries. See
the +help option or the HP-UX Linker and Libraries User’s Guide manual for a description of
this option.
-Cn Set the maximum parameter-checking level to n. The default maximum is 3. See the language
manuals for the meanings of the parameter-checking level.
-Fw Don’t emit unwind tables. Do not use this option if your compiler or tools require unwind tables.
-Fz Disable the linker feature that translates some calls to $$dyncall_external to calls to
$$dyncall.
HP-UX 11i Version 1: September 2005 − 11 − Hewlett-Packard Company Section 1−−447