shared library dynamic symbol binding error

Viewed 35

I have a shared library liba.so, which is depended by prog. And the LD_PRELOAD is set to LD_PRELOAD=libb.so. liba.so and libb.so have the same symbol MySymble, but the symbol in liba.so is specified with version_1, the symbol in libb.so has no version specified. The problem is, when I run prog. The symbol is bind to that of libb.so not liba.so. How could this happen?

0 Answers
Related