List Libraries

Rabin2 can list libraries used by a binary with the -l option:

$ rabin2 -l `which r2`
[Linked libraries]

22 libraries

Lets check the output with ldd command:

$ ldd `which r2` (0x00007fffba38e000) => /usr/lib64/ (0x00007f94b4678000) => /usr/lib64/ (0x00007f94b4425000) => /usr/lib64/ (0x00007f94b421f000) => /usr/lib64/ (0x00007f94b4000000) => /usr/lib64/ (0x00007f94b3dfa000) => /usr/lib64/ (0x00007f94b3afd000) => /usr/lib64/ (0x00007f94b38d2000) => /usr/lib64/ (0x00007f94b2fbd000) => /usr/lib64/ (0x00007f94b2db4000) => /usr/lib64/ (0x00007f94b2baf000) => /usr/lib64/ (0x00007f94b2944000) => /usr/lib64/ (0x00007f94b270e000) => /usr/lib64/ (0x00007f94b1c69000) => /usr/lib64/ (0x00007f94b1a63000) => /usr/lib64/ (0x00007f94b185a000) => /usr/lib64/ (0x00007f94b164d000) => /usr/lib64/ (0x00007f94b1446000) => /usr/lib64/ (0x00007f94b1236000) => /usr/lib64/ (0x00007f94b1016000) => /usr/lib64/ (0x00007f94b0d35000) => /lib64/ (0x00007f94b0b15000) => /lib64/ (0x00007f94b074d000) => /usr/lib64/ (0x00007f94b0546000) => /usr/lib64/ (0x00007f94b0339000) => /lib64/ (0x00007f94affaf000) => /lib64/ (0x00007f94afdab000)
/lib64/ (0x00007f94b4c79000) => /usr/lib64/ (0x00007f94afb3c000) => /usr/lib64/ (0x00007f94af702000) => /lib64/ (0x00007f94af4ff000) => /lib64/ (0x00007f94af2e8000)

If you compare the outputs of rabin2 -l and ldd, you will notice that rabin2 lists fewer libraries than ldd. The reason is that rabin2 does not follow and does not show dependencies of libraries. Only direct binary dependencies are shown.