HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)

l
ld_ia(1)
Integrity Systems Only
ld_ia(1)
+as mode Control the address space model to be used by the kernel. Possible values for mode
are default, share_magic , exec_magic , shmem_magic
, and mpas. The
default value is currently equivalent to
share_magic . In order to set the mode to
any value other than the default, this option must be used in conjunction with the
-N
option to ensure that the text and data segments are contiguous.
+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
the +b option appears more than once, the last one specified is recorded.
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). How-
ever, if any object files were the result of previous -r links, the +objdebug infor-
mation 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 incompatible
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 exter-
nal symbols into the file specified by filename. This dumps all external symbols
referred to within the load module (a.out or shared library) but not defined within
the load module into the specified file. You can pass this le back to your compiler
using the -Bextern:filename option. For more information, see the compiler
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.
524 Hewlett-Packard Company 7 HP-UX 11i Version 3: February 2007