News for hackers. Stuff that matters.
Re:Strace – My Favourite Secret Weapon (2011) by ereyes01 on Sunday February 11, 2018 @03:37PM (#16354651)
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.
Re:Strace – My Favourite Secret Weapon (2011) by hugelgupf on Sunday February 11, 2018 @03:41PM (#16354680)
Binaries can also use dlopen to open libraries that aren't listed by ldd.
Re:Strace – My Favourite Secret Weapon (2011) by ereyes01 on Sunday February 11, 2018 @03:42PM (#16354683)
Good point, dlopen is fully run-time, and the strace approach will catch those too, so it's more comprehensive.