Reputation: 347
Is it possible to use a command line utility in Linux to determine what is linked into my executable?
A way to prove I am not linking, statically or dynamically, to another piece of specific code.
Upvotes: 0
Views: 841
Reputation: 313
As stated in the comments - for dynamic linking, you have ldd.
But if you want to see the statically linked libraries, it gets difficult and depends on your setup: if you own the source code the accepted answer:
is your friend.
If not, you will at least have to know which libraries are suspected to be statically linked at.
If you have a huge code base and need to provide legal evidence you can use a software like black duck which checks even if a developer has copied source code with not matching licenses.
Upvotes: 2