ld(1)

ld(1)

When archive members are not compiled with +objdebug (and they contain debug information, that is, they were compiled with -g), the debug information from the archive members is copied into the a.out by default. The linker does not copy debug information from shared libraries into the a.out, regardless of whether they are compiled with +objdebug or +noobjdebug .

Use the +noobjdebug option when linking to explicitly tell the linker to copy all debug information to the executable ®le, even from ®les compiled with +objdebug.

+objdebugonly

Ignore debug information from non-objdebug objects or archives and proceed in +objdebug mode. This option can be passed from the C or C++ compiler command line as -Wl,+objdebugonly. If you are debugging only ®les compiled with the +objdebug option, +objdebugonly can improve link time by instructing the linker to bypass the processing of debug information from ®les compiled with +noobjdebug . With the +objdebugonly option, the linker suppresses the call to pxdb.

+pd size

Request a particular virtual memory page size that should be used for data. Sizes of

 

4K, 16K, 64K, 256K, 1M, 4M, 16M, 64M, 256M, D, and L are supported. A size of D

 

allows the kernel to choose what page size should be used. A size of L will result in

 

using the largest page size available. The actual page size may vary if the requested

 

size cannot be ful®lled.

+pgm name

Used together with the -Poption, this option speci®es that name should be used as

 

the look-up name in the pro®le database ®le. The default is the basename of the out-

 

put ®le (speci®ed by the -ooption.) This option is incompatible with the +ild

 

option.

+pi size

Request a particular virtual memory page size that should be used for instructions.

 

See the +pd option for additional information.

+s

Indicates that at run-time, the shared library loader can use the environment variable

 

SHLIB_PATH and LD_LIBRARY_PATH (64-bit only) to locate shared libraries

 

needed by the executable output ®le that were speci®ed with either the -lor -l:

 

option. The environment variables should be set to a colon-separated list of direc-

 

tories. If both +s and +b are used, their relative order on the command line indi-

 

cates which path list will be searched ®rst (see the +b option).

+std

This option is ignored for 32-bit links. Turns on standard mode, which is the default

 

in 64-bit mode. Options turned on with this option are: -dynamic. Options turned

 

off or ignored when this option is speci®ed are: +compat,+noenvvar,-

 

noshared.

+vallcompatwarnings

This option is accepted but ignored by the 64-bit ld. Show more detail for any warnings about compatibility issues. By default, only a terse message is printed. See the WARNINGS section below for further details.

+v[no]compatwarnings

This option is accepted but ignored by the 64-bit ld. Enable [disable] printing warnings about compatibility issues between systems. This includes any functionality which may change in future releases. The default is +vcompatwarnings. See the WARNINGS section below for further details.

+v[no]shlibunsats

Enable [disable] printing a list of unsatis®ed symbols used by shared libraries. The default is +vnoshlibunsats. Some unsatis®ed symbols reported by the linker are not required at run time because the modules which reference the symbols are not used.

+FP flag Specify how the environment for ¯oating-point operations should be initialized at program start-up. By default, all behaviors are disabled. The following ¯ags are supported (upper case ¯ag enables; lower case ¯ag disables):

V (v)

Trap on invalid ¯oating-point operations

 

Z (z)

Trap on divide by zero

 

HP-UX Release 11i: December 2000

− 7 −

Section 1429

l