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

l
ld_ia(1) ld_ia(1)
(For Itanium(R)-based Systems)
+b path_list Specify a colon-separated list of directories to be searched at program run-time to
locate shared libraries needed by the executable output file that were specified with
either the -l or -l: options. This list of directories becomes the embedded path.
If either +b is not used or if you specify a single colon (
:) as the argument, ld
builds an embedded path using all the directories specified by the
-L option(s) and
the
LPATH environment variable (see the +s
option).
+cdp oldpath:newpath
This option is ignored.
+compat Turn on compatibility mode in the linker mimic behavior of PA-RISC 32-bit
links.
+[no]copyobjdebug
When you use the +noobjdebug linker option to override the effect of the
+objdebug compiler option, the linker omits the
+objdebug information from
the object files (in addition to copying over the debug information to the output file).
However, if any object files were the result of previous
-r links, the +objdebug
information from these files is not omitted. The
+nocopyobjdebug option, when
used in conjunction with the
+noobjdebug option, forces the linker to omit
+objdebug information from all object files, including objects generated with the
-r option. +copyobjdebug is the default.
+[no]defaultrpath
+defaultrpath is the default. Include any paths that are specified with -L in
the embedded path, unless you specify the +b option. If you use +b, only the path
list specified by +b is in the embedded path.
The
+nodefaultrpath
option removes all library paths that were specified with
the
-L option from the embedded path. The linker searches the library paths
specified by the -L option at link time. At run time, the only library paths searched
are those specified by the environment variables LD_LIBRARY_PATH
and
SHLIB_PATH, library paths specified by the +b linker option, and finally the
default library paths.
+df file Used together with the -P option, this option specifies that file should be used as
the profile database file. The default value is
flow.data. See the discussion of
the FLOW_DATA environment variable for more information. This option is incom-
patible with the +ild option.
+dpv Output information on procedures that were eliminated by procelim. Equivalent to
+vtype procelim.
+dumpextern filename
Valid for executables and shared library links. Instructs the linker to dump all
external symbols into the file specified by filename. This dumps all external sym-
bols referred to within the load module (a.out or shared library) but not defined
within the load module into the specified le. You can pass this file back to your
compiler using the -Bextern:filename option. For more information, see the com-
piler options, -Bextern:filename, -Bhidden, and -Bprotected.
+e symbol When building a shared library or program, mark the symbol for export to the
dynamic loader. Only symbols explicitly marked are exported. When building a
shared library, calls to symbols that are not exported are resolved internally.
If you use the
+e or +ee option with -B symbolic, references to the symbol
specified are resolved internally if defined. The runtime behavior may be different
from using +e alone.
You can specify more than one symbol on the command line with multiple option-
symbol pairs, that is, each symbol you specify must be preceded by the
+e option.
+ee symbol This option is similar to the +e option in that it exports a symbol. However, unlike
the +e option, the +ee option does not alter the visibility of any other symbol in the
file. When building a +compat mode executable, by default ld exports only those
symbols that are actually referenced by a shared library seen at link time. The +ee
option when specified with +compat, has the effect of exporting the specified sym-
bol without hiding any of the symbols exported by default. In a +std mode link, all
Section 1456 Hewlett-Packard Company 7 HP-UX 11i Version 2: September 2004