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

l
ld_pa(1) ld_pa(1)
(For PA-RISC Systems)
+fb Instructs the linker to run the fastbind tool on the executable it has produced. The
executable should be linked with shared libraries. For more details refer to fast-
bind(1), the
+help option, or the HP-UX Linker and Libraries User’s Guide
manual. This option is incompatible with the +ild
option.
+fbu Pass the -u option to the fastbind tool. For more details refer to fastbind (1), the
+help option, or the HP-UX Linker and Libraries User’s Guide manual. This
option is incompatible with the
+ild option.
+filter shared_library_path
Enables the shared library filter mechanism, which allows you divide a large library
into a "filter" and several "implementation" libraries for more efficient organization
of shared libraries. shared_library_path specifies the location of the filter library.
See the HP-UX Linker and Libraries User’s Guide for more information.
+fini function_name
Specify the terminator (finalizer) functions to be invoked in forward order, the order
the functions appear left to right on the command line. The terminator functions
are called in reverse of the depth-first order of initializers.
Use this option while building a shared library, an incomplete executable, or fully
bound executable. Functions specified with this option should take no arguments
and return nothing (void functions). Terminators are invoked only if
main() calls
exit(). They are not called if main() calls return().
Do not use
+fini with the -r option. (The linker ignores the +fini option.)
You can specify more than one terminator function on the command line with multi-
ple option-symbol pairs, that is, each function you specify must be preceded by the
+fini option.
For more details on the terminator function, use the
+help option or see the HP-
UX Linker and Libraries User’s Guide.
+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
enhancements through use of global symbol table which improves searching for
exported symbols. See dld.sl (5) and the HP-UX Linker and Libraries Online User
Guide for more information.
+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 file system 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 internal_name is a fully-qualified pathname, it is recorded
as is in the library
list of any executable file it is subsequently linked against. internal_name is a rela-
tive pathname or no directory component was specified, internal_name is
appended to the file system directory component of the input shared library in the
library list of any executable file it is subsequently linked against.
If more than one +h option is seen on the link line, the first one is used and a warn-
ing message is emitted.
+help Starts the help window utility HP-UX Linker and Libraries Online User Guide
which comes with some HP compilers. (You must be running the X window system
and your DISPLAY environment variable must be set to the name of your worksta-
tion or X terminal.) For more information, refer to the HP-UX Linker and Libraries
HP-UX 11i Version 2: September 2004 7 Hewlett-Packard Company Section 1475