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

l
ld_ia(1)
Integrity Systems Only
ld_ia(1)
the HP-UX Linker and Libraries User’s Guide for more information.
+fini function_name
Specify the terminator function to be invoked in forward order, the order the func-
tions appear left to right on the command line.
You can specify more than one terminator function on the command line with multiple
option-symbol pairs, that is, each function you specify must be preceded by the
+fini option.
+[no]forceload
The default is +noforceload . The +forceload
option loads all object files from
archive libraries.
+noforceload loads only the required object files from archive
libraries. The selected mode, either explicitly or by default, remains in effect until you
explicitly change it.
+gst Enable the global symbol table hash mechanism, used to look up values of symbol
import/export entries. The
+gst and related options provide performance enhance-
ments through use of global symbol table which improves searching for exported sym-
bols. See dld.so(5) and the HP-UX Linker and Libraries Online User Guide for more
information.
+gstbuckets size
This option is ignored.
+gstsize size
Request a particular hash array size using the global symbol table hash mechanism.
The default value is 1103. The value can be overridden at runtime by setting the
_HP_DLDOPTS environment variable to the value -symtab_size prime number.
You can set the value using chatr +gstsize size file.
+h internal_name
When building a shared library, record internal_name as the name of the library.
When the library is used to link another executable file (program or shared library),
this internal_name is recorded in the library list of the resulting output file instead of
the pathname of the input shared library. That is, if
+h is not used, the shared
library does not have an internal name and when an executable is built with the
shared library, the linker records the library name that it looks at.
If more than one +h option is seen on the link line, the linker uses the first one and
emits a warning message.
+help Start the help browser utility HP-UX Linker and Libraries Online User Guide which
comes with the HP-UX operating system. For more information, see to the HP-UX
Linker and Libraries User’s Guide manual. See manuals(5) for ordering information.
+hideallsymbols
Prevent all the symbols from being exported unless explicitly exported with the
+e.
This option marks all symbols as "local" in the symbol table. See also the
-h and
+e
options.
+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 incompatible with the +ild option. If you specify one of
the following incompatible ld option with +ild, the linker emits a warning message
and ignores the +ild option.
The -r option: create a relocatable object file.
Strip options: -s, -x, and -G strip the output file.
Optimization options: -I, -O, -P, -PD, -PF, +df file, +fb, +fbu, +fbs, +pgm
name, and +Oprocelim.
The following options are compatible with the +ild option with limitations:
506 Hewlett-Packard Company 9 HP-UX 11i Version 2: December 2007 Update