ldd -r abc.so

六六哥 2009-11-17

       -r --function-relocs
              Perform relocations for both data objects and functions, and report any missing objects or functions (ELF only).

例子:

lilong@linux:~/log_client/all_in_one/logclientdrv> ldd -r LogClientDrv.so
    linux-gate.so.1 =>  (0xffffe000)
    liblogclient2.so => not found
    libz.so.1 => /lib/libz.so.1 (0x4001c000)
    libxml2.so.2 => /usr/lib/libxml2.so.2 (0x4002e000)
    libc.so.6 => /lib/tls/libc.so.6 (0x40132000)
    libpthread.so.0 => /lib/tls/libpthread.so.0 (0x4024c000)
    libm.so.6 => /lib/tls/libm.so.6 (0x4025c000)
    /lib/ld-linux.so.2 (0x80000000)
undefined symbol: driver_alloc    (./LogClientDrv.so)
undefined symbol: driver_free    (./LogClientDrv.so)
undefined symbol: LogReport    (./LogClientDrv.so)
undefined symbol: InitLogClient    (./LogClientDrv.so)

相关推荐