username_4567
username_4567

Reputation: 4903

How to list files in a .so file?

Is there any way to list the files used while creating .so file? nm cannot be useful and also `readelf' also. Does some table maintain information?

Upvotes: 0

Views: 2636

Answers (2)

jav
jav

Reputation: 664

readelf -s libfoobar.so | grep FILE

Upvotes: 2

Chris Maes
Chris Maes

Reputation: 37752

you cannot list the object files used to create a shared object file, since that information is not stored by default in a shared object file. A shared library is fully linked so you cannot "unarchive" it. see reference, but you can list the functions contained using this command

nm -D /usr/lib/libopenal.so.1

Upvotes: 1

Related Questions