Y
Hacker News
new
|
ask
|
show
|
jobs
by
ereyes01
3056 days ago
This is a cool trick. On Linux, the ldd command also tells you what libraries a program wants to link to. You can also play around with LD_LIBRARY_PATH to manipulate what ldd tells you.
1 comments
hugelgupf
3056 days ago
Binaries can also use dlopen to open libraries that aren't listed by ldd.
link
ereyes01
3056 days ago
Good point, dlopen is fully run-time, and the strace approach will catch those too, so it's more comprehensive.
link