c++ - dose dladdr able to get the info from static member? -
During the research of some libraries, I found this type of code
Dl_info info = { NULL, Faucet, Nouel, Null}; If (! Dladar (Zero *) Diasp, and info) {return libPath.c_str (); }
Where dirSep
is dladdr
function is able to get an information form stable const member
area?
no, and dladar
can not promise or guarantee It can only see the symbol table in the module. If there is a symbol in the symbol table, then it can give it to you if not, not so. The symbol depends on which symbols the table is compiled on how the module is compiled, how it is connected, and how and what has been snatched.
Generally, if the code can link it, then dladdr
should find it.
Comments
Post a Comment