bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ldd, shared libs, overriding functions, and undefined symbols


From: Wolfram Gloger
Subject: Re: ldd, shared libs, overriding functions, and undefined symbols
Date: Wed, 12 Mar 2003 11:42:58 +0100 ("MET)

> Short question:
> 
>    How do I get a shared library to resolve to symbols - that are
>    defined in the application at run time - that did not need to
>    resolve at link time and visa-versa.
... 
> I'm at a loss to figure out what I have to do here.

Please check the fine ld manual:

       -E
       --export-dynamic
           When creating a dynamically linked executable, add all
           symbols to the dynamic symbol table.  The dynamic sym­
           bol table is the set of symbols which are visible from
           dynamic objects at run time.
...
           If you use "dlopen" to load  a  dynamic  object  which
           needs to refer back to the symbols defined by the pro­
           gram, rather than some other dynamic object, then  you
           will probably need to use this option when linking the
           program itself.

Regards,
Wolfram.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]