ld_pa.1 (2010 09)

l
ld_pa(1) PA-RISC Systems Only
ld_pa(1)
references), the output file will be removed.
+mergeseg Enables shared library segment merging feature. See description of shared library
segment merging in the HP-UX Linker and Libraries User’s Guide. This enables all
the data segments of the shared libraries loaded at program startup to be merged.
This increases run-time performance by allowing the kernel to use larger size page
table entries.
+mmap Enables the feature to use mmap for writing the output data. This is the default
behavior. Linker enabled with mmap is much faster.
+n Causes the linker to load all object modules before searching any archive or shared
libraries. Then it searches the archive and shared libraries specified on the com-
mand line in left to right order. Repeats the left to right search of the libraries on
the command line until there are no more unsatisfied symbols, or the last search
added no new definitions. This option is useful if two libraries are specified that
have symbol dependencies on each other.
+nocopyobjdebug
Do not copy objdebug space. Use this option (with
-r object files on the link line) to
suppress the default behavior of copying LINKMAP space to the executable file.
+noobjdebug
Override the +objdebug compiler option, and copy all debug information to the
executable file.
When used with
-g, +objdebug leaves debug information in the object files
instead of copying it to the executable file at link time, resulting in shorter link
times and smaller executables. The compile-time default, +noobjdebug,copies
the debug information to the executable file.
When you specify
-g when compiling, the compiler places symbolic debugging infor-
mation into the object files. By default, the linker calls pxdb which compacts this
debug information and copies it to the executable file. When +objdebug was used
at compile time, the linker leaves the debug information in the object files. To
debug the executable file, the HP WDB debugger must have access to the object
files. If you move the object files, use HP WDB’s objdir
command to tell it where
the object files are. The
+objdebug option reduces link time and the size of the
executable file by avoiding this copying of debug information.
The compile-time default is
+noobjdebug. If the linker detects any object files
that were compiled with +objdebug, it leaves the debug information in those files.
Any object files not compiled with +objdebug have their debug information copied
into the executable file. You can leave debug information in some object files and
not in others.
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 file, even from files compiled with +objdebug.
+nomergeseg
Disables the shared library segment merging feature. This is the default.
+nommap Disables the mmap feature and uses the normal buffering method to write into the
output file. NOTE: Do not use +nommap unless in cases like the system has very
low memory and the linker fails because of this.
+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 com-
mand line as -Wl,+objdebugonly. If you are debugging only files compiled
with the +objdebug option, +objdebugonly can improve link time by instruct-
ing the linker to bypass the processing of debug information from files compiled
with +noobjdebug. With the +objdebugonly option, the linker suppresses the
HP-UX 11i Version 3: September 2010 9 Hewlett-Packard Company 9