l

ld(1)

ld(1)

Versioning of objects within a shared library.

These messages can be turned off with the +vnocompatwarnings option.

As noted in the Options section, certain options no longer exist in a 64-bit linker. They are:

-q

-A

-C

-E

-Q

-S

-T

-X

+dpv

Some restrictions exist for 64-bit mode with executables built with shared libraries and with S-bit set (through +s enabled). The behavior of 64-bit executables does not match the behavior of equivalent 32-bit executables or executables built with +compat. For any setuid or setgid programs, dld disables any dynamic library searching through environment variables, SHLIB_PATH for 32-bit and 64-bit mode, and LD_LIBRARY_PATH for 64-bit mode. If a library only exists in the directory speci®ed in SHLIB_PATH (or LD_LIBRARY_PATH), you get the runtime error "library not found" if the program is a setuid program (that is, uid not equal to euid or gid not equal to eguid) and it depends on that library. dld uses the dynamic path lookup (with SHLIB_PATH) only if the following conditions are satis®ed: 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

32-bit system archive and shared libraries

 

/usr/lib/lib*

 

/usr/lib/pa20_64/lib*

64-bit system archive and shared libraries

 

/usr/ccs/lib*

32-bit development archive and shared libraries

 

/opt/langtools/lib/pa20_64

64-bit development object ®les, archive and shared libraries

a.out

output ®le

 

/usr/lib/dld.sl

32-bit dynamic loader

 

/usr/lib/pa20_64/dld.sl

64-bit dynamic loader

 

/opt/langtools/lib/end.o

for use with the 32-bit dde debugger

 

/opt/langtools/lib/pa20_64/end.o

 

 

for use with the 64-bit dde debugger

 

/usr/ccs/lib/crt0.o

32-bit run-time startup ®le

 

/opt/langtools/lib/crt0.o

Identical to /usr/ccs/lib/crt0.o

 

/opt/langtools/lib/pa20_64/crt0.o

 

 

64-bit run-time startup ®le

 

/usr/ccs/lib/dyncall.o

32-bit only. Used with -Aoption links

 

/opt/langtools/lib/mcrt0.o

32-bit run-time startup with pro®ling (see prof(1))

 

/opt/langtools/lib/pa20_64/mcrt0.o

 

 

64-bit run-time startup with pro®ling

 

/usr/lib/milli.a

32-bit millicode library automatically searched by

ld

/usr/lib/pa20_64/milli.a

64-bit millicode library automatically searched by

ld

/opt/langtools/lib/gcrt0.o

run-time start-up with pro®ling (see gprof(1))

 

/opt/langtools/lib/pa20_64/gcrt0.o

 

64-bit run-time start-up with pro®ling (see gprof(1))

Section 1438

− 16 −

HP-UX Release 11i: December 2000