Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
l
ld(1) ld(1)
nonfatal
If also using -B immediate, for code symbols that could not be bound at pro-
gram startup, defer binding them until they are referenced. See description of
-B immediate above.
Since -B nonfatal suppresses messages about unresolved symbols, also
specify -B verbose to display those messages.
restricted
Causes the search for a symbol definition to be restricted to those symbols that
were visible when the library was loaded.
symbolic
Used only when building a shared library (with the -b option), this option
causes all unresolved symbols inside a library to be resolved internally if possi-
ble. By default, unresolved symbols are resolved to the most visible definition in
the library or outside of the library.
verbose
Display verbose messages when binding symbols. This is the default except when
-B nonfatal is specified. In that case,
-B verbose must be explicitly
specified to get verbose messages.
See the
+help option or the HP-UX Linker and Libraries User’s Guide manual for
more information on the uses of binding modes.
-D offset Set the origin (in hexadecimal) for the data segment.
When used with the +ild option, if you change the offset after the initial incremental
link, the linker performs an initialincremental link automatically.
-E This option is accepted but ignored by the 64-bit ld. Mark all symbols defined by a
program for export to shared libraries. By default, ld marks only those symbols that
are actually referenced by a shared library seen at link time.
-G Strip all unloadable data from the output file. This option is typically used to strip
debug information.
-I Instrument the code to collect profile information upon execution. The profile data
gathered during program execution can be used in conjunction with the -P option.
32-bit programs linked with this option should use the startup le
/opt/langtools/lib/icrt0.o
. This option should not be used with the -P,
-A, -O, +ild,or+O options.
-L dir Search for libx.a or libx.sl in dir before looking in default locations. More than
one directory can be specified, but each must be preceded by
-L. The -L
option is
effective only if it precedes the
-l option on the command line.
-O Turn on linker optimizations. Currently the optimizations include the elimination of
unnecessary
ADDIL instructions from the code in the executable file (32-bit only),
and the removal of dead procedures.
-O is passed to the linker by the compilers when the +O4 compiler option is selected.
This option is incompatible with the +ild option.
For more details on linker optimizations refer to the
+help option or the HP-UX
Linker and Libraries User’s Guide manual.
-P Examine the data file produced by an instrumented program (see the -I option) to
perform profile based optimizations on the code. This option should not be used with
the -A or +ild options.
-Q Ignored for 64-bit links. Generate an executable output file with file type
EXEC_MAGIC or SHARE_MAGIC , depending on whether -N or -n is specified.
This is the default. This option is incompatible with -q.
-R offset Set the origin (in hexadecimal) for the text (i.e., code) segment.
When used with the +ild option, if you change the offset after the initial incremen-
tal link, the linker performs an initialincremental link automatically.
Section 1426 4 HP-UX Release 11i: December 2000
___
___