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)
_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 relative
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 warning
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 workstation or X ter-
minal.) For more information, refer to the HP-UX Linker and Libraries User’s Guide
manual. See manuals(5) for ordering information.
+k Direct the linker to only create an executable if there were no errors encountered dur-
ing the link. If there were errors found (system errors or unresolved references), the
output file will be removed.
+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 command
line in left to right order. Repeats the left to right search of the libraries on the com-
mand 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 HP DDE debugger does not support this option.) 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.
Section 1428 6 HP-UX Release 11i: December 2000
___
___