Bug in dlsym() (scope problem(?) & RTLD_NEXT problem)

Ulrich Drepper drepper@cygnus.com
Wed Oct 14 02:22:00 GMT 1998


smurf@noris.de (Matthias Urlichs) writes:

> Does anybody know how other OSes, esp. Slowaris, handle this?

Solaris does not STB_WEAK different from STB_GLOBAL in ld.so.  It only
handles it differently in ld.  This is strict following to the ELF
standard.  Means, the ELF standard does not say anything about ld.so
handle STB_WEAK.

This makes the whole situation even more complicated.

Any suggestions?  For the ld.so handling I say nothing should (must?) 
be changed.  The GNU ld.so handling is much more powerful.  For
RTLD_NEXT, I still think the current behaviour is correct since the
lookup should in any case be the same performed by ld.so during the
implicit relocations.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------



More information about the Libc-hacker mailing list