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

l
ld_ia(1)
Integrity Systems Only
ld_ia(1)
+[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 file 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.
+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 symbol without hiding any of the symbols exported by default.
In a +std mode link, all symbols are exported by default, so +ee is not necessary to
make a symbol visible. However, it has the additional side effect of identifying the
symbol as necessary, so that it will not be removed when using dead code elimination
(+Oprocelim). The +ee option still retains its export behavior if an option such as
+hideallsymbols is also given.
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 +ee option.
+fb Instruct the linker to run the fastbind tool on the executable it has produced. The
executable should be linked with shared libraries. For more details about fastbind(1),
use the +help option, or see the HP-UX Linker and Libraries User’s Guide manual.
This option is incompatible with the +ild option.
+fbu Pass the -u option to the fastbind tool. For more details about fastbind(1), use the
+help option, or see the HP-UX Linker and Libraries User’s Guide manual. This
option is incompatible with the +ild option.
+filter shared_library_path
Enables the shared library filter mechanism, which allows you to divide a large library
into a "filter" and several "implementation" libraries for more efficient organization of
shared libraries. shared_library_path specifies the location of the filter library. See
HP-UX 11i Version 2: December 2007 Update 8 Hewlett-Packard Company 505