Shared Objects

Hi Friends !
I have a library, say libxyz.a.
To view all the object files in the archive, i issued the command :

ar -t libxyz.a

which displayed all the object files it contains.

Now, I would like to know the functions in each object file.

Is there any such command that displays functions in an object file ??

thanks,
madhav

Maybe 'objdump' with suitable option will help you.

Regards

... or 'nm'

Can you help me to find the advantages of ar with respect to tar.

I generally use tar to accumulate files, but on reading man pages of ar, it can also be used to do the same thing.

Just one thing that ar can do and tar can't is, view contents of an archive file.
Anything else.