Get Ldd Without Ldd
With LD_TRACE_LOADED_OBJECTS=1
1
2
3
4
5
6
7
8
9
10
11
12
| $ ldd bin
-sh: ldd: not found
$ LD_TRACE_LOADED_OBJECTS=1 ./bin
linux-vdso.so.1 (0x00007ffc3a1d1000)
libncurses.so.6 => /usr/lib64/libncurses.so.6 (0x00007f46e6619000)
libtinfo.so.6 => /usr/lib64/libtinfo.so.6 (0x00007f46e65e5000)
libform.so.6 => /usr/lib64/libform.so.6 (0x00007f46e65d3000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f46e63b0000)
libm.so.6 => /lib64/libm.so.6 (0x00007f46e62d2000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f46e62b1000)
libc.so.6 => /lib64/libc.so.6 (0x00007f46e60d4000)
/lib64/ld-linux-x86-64.so.2 (0x00007f46e6645000)
|