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

l
ld_ia(1) ld_ia(1)
(For Itanium(R)-based Systems)
The behavior of normal executables does not match the behavior of executables built with
+compat.For
any
setuid or setgid programs, dld disables any dynamic library searching through environment
variables, SHLIB_PATH and LD_LIBRARY_PATH
. If a library only exists in the directory specified in
SHLIB_PATH (or LD_LIBRARY_PATH
), you get the runtime error "library not found" if the program is a
setuid or setgid program (that is, uid not equal to euid or gid not equal to egid) and it depends on
that library. dld uses the dynamic path lookup (with
SHLIB_PATH) only if the following conditions are
satisfied:
getuid () == geteuid () && getgid () == getegid ()
. That is, if the uid or
gid does not match its effective counterpart,
dld searches only the recorded library path. As a result, dld
does not check the
SHLIB_PATH which causes the runtime error "library not found".
AUTHOR
ld was developed by AT&T, the University of California, Berkeley, and HP.
FILES
/usr/lib/hpux32/lib*
32-bit system archive and shared libraries
/usr/lib/hpux64/lib*
64-bit system archive and shared libraries
a.out output file
/usr/lib/hpux32/dld.so
32-bit dynamic loader
/usr/lib/hpux64/dld.so
64-bit dynamic loader
/usr/ccs/lib/hpux32/crt0.o
32-bit run-time startup file
/usr/ccs/lib/hpux64/crt0.o
64-bit run-time startup file
/usr/lib/hpux32/milli.a
32-bit millicode library automatically searched by ld
/usr/lib/hpux64/milli.a
64-bit millicode library automatically searched by ld
/usr/lib/hpux64/millikern.a
64-bit millicode library automatically searched by ld for
embedded systems
/usr/lib/nls/msg/$LANG/ld.cat
message catalog
/var/tmp/ld* temporary files
flow.data file containing profile data generated by running an instru-
mented executable
/usr/ccs/bin/fdp program for creating the procedure link order from a profile
database file created by an instrumented executable; forked
by the
-P option
/opt/langtools/bin/sin
static instrumentor to instrument an executable or a shared
library. It is invoked if you use the
-I option.
SEE ALSO
Profiling and Debugging Tools
adb(1) absolute debugger
gprof(1) display call graph profile data
prof(1) display profile data
wdb(1) C, C++, Fortran symbolic debugger
System Tools
aCC(1) invoke the HP-UX aC++ compiler
ar(1) create archived libraries
cc(1) invoke the HP-UX C compiler
chatr(1) change program’s internal attributes
elfdump(1) dump information contained in an object file
exec(2) execute a file
f90(1) invoke the HP-UX Fortran 90 compiler
fastbind (1) invoke the fastbind tool
lorder(1) find ordering relation for an object library
nm(1) print name list of object file
size(1) print section sizes of object files
strip(1) strip symbol and line number information from an object file
HP-UX 11i Version 2: September 2004 18 Hewlett-Packard Company Section 1467