HP-UX Reference (11i v2 04/09) - 1 User Commands A-M (vol 1)

l
ld_pa(1) ld_pa(1)
(For PA-RISC Systems)
+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.
+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.
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 starting 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.
-N Generate an executable output file with file type EXEC_MAGIC. This option is incompatible
with -n and -q. This option causes the data to be placed immediately following the text, and
makes the text writable. Files of this type cannot be shared.
-S Generate an Initial Program Loader (IPL) auxiliary header for the output file, instead of the
default HP-UX auxiliary header.
-T Save the load data and relocation information in temporary files instead of in memory during
linking. This option reduces the virtual memory requirements of the linker. If the TMPDIR
environment variable is set, the temporary files are created in the specified directory, rather
than in /var/tmp.
+cdp oldpath:newpath
Replace the recorded path for a shared library in the a.out. In 32-bit mode, ld records the
absolute path names of any shared libraries searched at link time in the a.out file. When
the program begins execution, the dynamic loader attaches any shared libraries that were
searched at link time. Although you can use the +b and/or +s linker options to direct the
dynamic loader to directories to search for the shared libraries, the dynamic loader, as a last
HP-UX 11i Version 2: September 2004 − 11 − Hewlett-Packard Company Section 1−−479