请输入您要查询的百科知识:

 

词条 Ldd (Unix)
释义

  1. Security

  2. Usage

  3. References

{{Other uses|LDD (disambiguation){{!}}LDD}}{{lowercase|ldd}}ldd (List Dynamic Dependencies) is a *nix utility that prints the shared libraries required by each program or shared library specified on the command line.[1] It was developed by Roland McGrath and Ulrich Drepper.[2]

If some shared library is missing for any program, that program won't come up.

Security

ldd is a shell script that executes the program given as argument, and shouldn't be used with untrusted binaries. The ldd manual page suggests to use as alternative the following command, using the objdump and grep utilities :

user@home ~/ $ objdump -p /path/program | grep NEEDED

Usage

user@home ~/ $ ldd /usr/bin/mp3blaster

        linux-vdso.so.1 =>  (0x00007fff8fdff000)        libsidplay.so.1 => /usr/lib/libsidplay.so.1 (0x00007f4ea98ec000)        libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3 (0x00007f4ea96e4000)        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x00007f4ea94b6000)        libncurses.so.5 => /lib/libncurses.so.5 (0x00007f4ea9273000)        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f4ea9056000)        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f4ea8d41000)        libm.so.6 => /lib/libm.so.6 (0x00007f4ea8abe000)        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f4ea88a7000)        libc.so.6 => /lib/libc.so.6 (0x00007f4ea8523000)        libogg.so.0 => /usr/lib/libogg.so.0 (0x00007f4ea831c000)        libdl.so.2 => /lib/libdl.so.2 (0x00007f4ea8118000)        /lib64/ld-linux-x86-64.so.2 (0x00007f4ea9b59000)

References

1. ^{{cite web |url=http://linux.die.net/man/1/ldd |title=ldd(1) – Linux man page|work=die.net |accessdate=December 28, 2011}}
2. ^{{cite web |url=http://stuff.mit.edu/afs/sipb/project/phone-project/bin/arm-linux-ldd|title=ldd Source Code|work=stuff.mit.edu|accessdate=March 26, 2014}}
{{Unix-stub}}

1 : Unix software

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/13 23:16:30