Learning which libraries are used for a binary
You can use ldd command to display all of the libraries which linked against a binary:
ldd /sbin/mkfs
linux-gate.so.1 => (0xb7fad000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7e3a000)
/lib/ld-linux.so.2 (0xb7fae000)
Sometimes, especially on embedded systems other than i386 architecture, there is no ldd utility. If you found this type of system and wants to learn the used libraries for a binary, you can use directly ld-linux.so.2 as follow:
/lib/ld-linux.so.2 --list /sbin/mkfs
linux-gate.so.1 => (0xb7fad000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7e3a000)
/lib/ld-linux.so.2 (0xb7fae000)
- 0 Comment
- Murat Demirten
- 14 Dec 2008, 20:50
-
You must be login first or sign-up for an account to post comments.
USERBOX
CATEGORIES
MOST READ TODAY
- Syntax highlighting in less
- Learning all of the available system calls
- Redirecting tcp / udp ports with socat
- XFS Filesystem has duplicate UUID problem
- Multi-conditional search and replace (clearing a ftp trojan script example)
- Working with Linux kernel oops messages
- Redirecting TCP ports with redir
- Using netstat
- Reverse telnet on Linux using netcat
- Removing specific message(s) from exim mail queue
LAST ADDED
- Using iPhone internet sharing over bluetooth under Linux
- Using USB sound card with amarok
- Multi-conditional search and replace (clearing a ftp trojan script example)
- Disabling ipv6 functionality
- How to convert a mp3 file
- How to choose the fastest Debian mirror
- Disabling reverse dns lookups in ssh
- Rewriting destination ip address
- Deleting A File By It's Inode Value
- Learning which libraries are used for a binary
