l

ld(1)

ld(1)

nonfatal

If also using -B immediate, for code symbols that could not be bound at program 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 de®nition to be restricted to those symbols that were visible when the library was loaded.

symbolic

Used only when building a shared library (with the -boption), 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 de®nition in the library or outside of the library.

verbose

Display verbose messages when binding symbols. This is the default except when -B nonfatal is speci®ed. In that case, -B verbose must be explicitly speci®ed 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.

 

 

-Doffset

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 initial incremental link automatically.

 

-E

This option is accepted but ignored by the 64-bit ld. Mark all symbols de®ned 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 ®le.

This option is typically used to strip

 

debug information.

 

 

-I

Instrument the code to collect pro®le information upon execution.

The pro®le data

 

gathered during program execution can be used in conjunction with the -Poption.

 

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 speci®ed, but each must be preceded by -L. The -Loption is

 

effective only if it precedes the -loption 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 ®le (32-bit only),

 

and the removal of dead procedures.

 

 

 

-Ois 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 ®le produced by an instrumented program (see the -Ioption) to

 

perform pro®le based optimizations on the code. This option should not be used with

 

the -Aor +ild options.

 

 

-Q

Ignored for 64-bit links. Generate an executable output ®le

with ®le type

 

EXEC_MAGIC or SHARE_MAGIC , depending on whether -Nor

-nis speci®ed.

 

This is the default. This option is incompatible with -q.

 

-Roffset

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 initial incremental link automatically.

 

Section 1426

− 4 −

HP-UX Release 11i: December 2000