RTLD_GLOBAL symantics

RTLD_GLOBAL symantics

Post by Neal Beck » Sat, 09 Dec 1995 04:00:00



I'm so pleased to see RTLD_GLOBAL is working in ld.so-1.7.12!

I am wondering about the symantics.  If I load a.so which defines 'a'
and then load b.so which redefines 'a', which definition will be seen
when I subsequently load c.so which needs 'a' ?

 
 
 

RTLD_GLOBAL symantics

Post by Matthias Urlic » Wed, 20 Dec 1995 04:00:00




Quote:> I'm so pleased to see RTLD_GLOBAL is working in ld.so-1.7.12!

> I am wondering about the symantics.  If I load a.so which defines 'a'
> and then load b.so which redefines 'a', which definition will be seen
> when I subsequently load c.so which needs 'a' ?

It should be _really_ easy to write a small test program for that.

Anyway, is there some written document that actually says what the
semantics are? Doo we care? ;-)

My view: the a in c should refer to the a in b. If you don't want that,
don't load b with RTLD_GLOBAL...

--
A consultant is a person who borrows your watch, tells you what time it is,
pockets the watch, and sends you a bill for it.
--

Schleiermacherstra?e 12  \  Unix+Linux+Mac    | Phone: ...please use email.
90491 Nrnberg (Germany)  \   Consulting+Networking+Programming+etc'ing     42
          PGP: 1B 89 E2 1C 43 EA 80 44  15 D2 29 CF C6 C7 E0 DE
       Click <A HREF="http://smurf.noris.de/~smurf/finger">here</A>.

 
 
 

1. strange streams socket symantics

I have written three programs that communicate with each other through
INET streams sockets---

prog A
listens on port X
listens on port Y

prog B
listens on port X
connects to prog A on port Y

prog C
connects to prog A on port X
connects to prog B on port X

I had a lot of trouble with this until I found out about SO_REUSEADDR.
:-) Anyway, I'm still having occational problems.  Sometime, prog C
will think its connected to prog B while prog B will still be blocking
in select. I'm fairly sure all the fd masks are set correctly because
this problem only happens sometimes.

Is there something I may not be doing? Is there I man page I missed? I
suppose I should check to see if my threads package is messing things
up somehow.

thanks,


( It might be hot in Pittsburgh, but at least it's humid.

2. Commercial Databases

3. BSD Symantics? Is that a kernel option?

4. Modem locked in kppp

5. has anyone successfully used dlopen's RTLD_GLOBAL flag?

6. pipe example

7. ld.so-1.7.11 RTLD_GLOBAL working?

8. HTTP://SMOG.CJB.NET :: Science, Technology, E-Books, News, Software, Security, Tutorials,Gaming, NT, Linux, Hardware, Webdesign, Graphics, 2D, 3D

9. dlopen, -rdynamic, RTLD_GLOBAL ???