Subj : Re: Passing context and object to shared library To : netscape.public.mozilla.jseng From : Date : Wed Sep 24 2003 09:57 am "Brendan Eich" wrote in message news:bkqr24$3c43@ripley.netscape.com... > > This has nothing to do with the JS engine, and everything to do with > your GNU toolchain. What version of gcc are you using? Of binutils? > What are *all* the command line options used when compiling? When > linking? When building a .so file? > Ok. My bad. :) I was using the js.c distributed with the javascript distro for prototyping the dynamic loader code. As it turns out, when linking the test program (js) Makefile.ref does not link with the libjs.so shared library, it links with the static libjs.a. So the "app" was linking with the static library and my shared object was linking with libjs.so. No wonder there were problems. Of course it worked when the shared object had to resolve libjs symbols from the "app" using -rdynamic because then they were using the same library. Have a nice day. -Mike .