user_ABCD
user_ABCD

Reputation: 347

How to see exactly what is linked into my program?

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

Answers (1)

data cosmos
data cosmos

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

Related Questions