views:

39

answers:

2

Hi I'm working in a Linux environment and I have to link to a object file already compiled which offers me some services (services.o) and I know some of them, but I'd like to know which are all of the exported symbols of it.

Is there any way to accomplish this not having the sources? If so, how?

Thanks you very much.

+4  A: 

Try nm -- this tool is there for just this purpose.

dirkgently
+1. Unless it has been stripped.
Ninefingers
Thank you very much! This is just what I needed.
Ana Pazos
nm will still tell you all the exported symbols even in a stripped object. A stripped executable loses all the exports, but an unlinked object still has to have the exports named or you won't be able to link it.
Andrew McGregor
+1  A: 

Another option is objdump which also can show you a bunch of other stuff

joveha