This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]