Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to know which symbols are exported in a object file?

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.

like image 900
Ana Pazos Avatar asked Dec 01 '25 21:12

Ana Pazos


2 Answers

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

like image 193
dirkgently Avatar answered Dec 04 '25 11:12

dirkgently


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

like image 30
joveha Avatar answered Dec 04 '25 12:12

joveha