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

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
l
ld(1) ld(1)
linker places all symbols in the link into a single SmartBind module instead of placing
each .o file 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 flag 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
-k filename filename specifies a mapfile that describes the output file memory map.
The user specified mapfile specifications are permitted with the +ild option. But you
should not modify the mapfile after the initial incremental link. If the mapfile is
modified after the initial link, an initialincremental 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 flag errors if the resulting output file has unsatisfied sym-
bols. This is the default for relocatable links and shared library builds. +noal-
lowunsats
Flags an error if the resulting output file has unsatisfied symbols. This
is the default for program files.
+fini function_name
Specify the terminator function.
+ild Specify incremental linking.
If the output file does not exist, or if it was created without the +ild option, the
linker performs an initial incremental link. The output file 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 initialincremental link automati-
cally.
-k mapfile
provide a non-default mapfile. The user specified mapfile specifications are per-
mitted with the +ild option. But you should not modify the mapfile after the
initial incremental link. If the mapfile is modified 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.
-r create a relocatable object file.
Strip options:
-s and -x strip the output file. (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 file, +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
___
___