Shared objects (.so) static linking and opening other shared object

Posted by mkal on Stack Overflow See other posts from Stack Overflow or by mkal
Published on 2010-05-27T16:57:04Z Indexed on 2010/05/27 17:01 UTC
Read the original article Hit count: 203

Filed under:
|
|

I have one shared object (a.so) which has statically linked (s.so). b.so also has a static link of s.so.

a.so does a dlopen on b.so , will "s.so" code be shared between the two.

The .so are built on gcc 4.1 on RedHat linux.

The s.so is compiled against a.so and b.so with -Bstatic and --no-whole-archive option.

© Stack Overflow or respective owner

Related posts about c++

Related posts about linux