I made a mistake, the symbol in the app is actually in the .symtab section, not in the .dynsym section, so it's unavailabe in runtime.
Interesting thing is that once the symbol is used in the app, the symbol will be put into the .dynsym section. In this way, lib(shared object) can use the symbol defined in app successfully.
maybe some one can give the detailed explanation.
thanks in advance.
|