l

ld(1)

ld(1)

linker places all symbols in the link into a single SmartBind module instead of placing each .o ®le in its own module.

+plabel_cache

Enable the plabel caching mechanism. Use this option with the +gst option.

This option is only effective with C++. In C++ applications, the dynamic loader needs to repetitively access PLABEL information (import stub). In order to make this access faster, the dynamic loader uses the global symbol table structure to also contain PLA- BEL entries. This behavior is enabled when the PLABEL_CACHE ¯ag is set in the dl_header structure (enabled ld +plabel_cache enable a.out or chatr +plabel_cache enable a.out).

64-bit Link Editor Options

-kfilename filename speci®es a map®le that describes the output ®le memory map.

The user speci®ed map®le speci®cations are permitted with the +ild option. But you should not modify the map®le after the initial incremental link. If the map®le is modi®ed after the initial link, an initial incremental link is performed automatically.

Please refer to HP-UX Linker and Libraries User's Guide guide for more information. Also see +nodefaultmap.

+[no]allowunsats

+allowunsats Does not ¯ag errors if the resulting output ®le has unsatis®ed sym- bols. This is the default for relocatable links and shared library builds. +noal- lowunsats Flags an error if the resulting output ®le has unsatis®ed symbols. This is the default for program ®les.

+fini function_name

 

Specify the terminator function.

+ild

Specify incremental linking.

 

If the output ®le does not exist, or if it was created without the +ild option, the

 

linker performs an initial incremental link. The output ®le produced is suitable for

 

subsequent incremental links. The incremental link option is valid for both executable

 

and shared library links.

 

The following options are compatible with the +ild option with limitations:

 

-D offset , -R offset

 

Set the origin for the data and text segments. If you change the offset after the

 

initial incremental link, the linker performs an initial incremental link automati-

 

cally.

 

-kmapfile

 

provide a non-default map®le. The user speci®ed map®le speci®cations are per-

 

mitted with the +ild option. But you should not modify the map®le after the

 

initial incremental link. If the map®le is modi®ed after the initial link, an initial

 

incremental link is performed automatically.

 

If you specify one of the following incompatible ld option with +ild, the linker emits

 

a warning message and ignores the +ild option.

 

-rcreate a relocatable object ®le.

 

Strip options:

 

-sand -xstrip the output ®le. (The incremental linking requires the parts of

 

the output load module which are stripped out with these options.)

 

Optimization options:

 

-I,-O,-P,-PD,-PF,+df ®le, +fb, +fbu, +fbs, +pgm name, +Opro-

 

celim

+ildnowarn Suppress incremental-linking related warnings. By default, the linker issues all incremental-linking related warnings. This option is ignored if used without +ild or +ildrelink.

+ildpad percentage

Control the amount of padding percentage the incremental linker allocates, relative to

Section 1432

− 10 −

HP-UX Release 11i: December 2000