通过ldd查找符号引用
根据ldd manual, 通过-d, -r分别可以查看缺失的符号, 对于elf格式的so一样有效, 例如:
[~/qmf/application/server/qmf_cmdsvr]$ ldd -r src/qmfcmd_spp.so
linux-gate.so.1 => (0xbfffe000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb74cf000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb73eb000)
libm.so.6 => /lib/libm.so.6 (0xb73c3000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb73b7000)
libc.so.6 => /lib/libc.so.6 (0xb7276000)
/lib/ld-linux.so.2 (0x80000000)
undefined symbol: _ZN5tbase4tlog5CTLog5log_iEiiPKcz (src/qmfcmd_spp.so)