How to list the functions in a .a library on Linux

How to list the functions in a .a library on Linux?

asked Sep 5, 2013 by anonymous

1 Answer

Best answer

You can use the nm command:

The nm utility shall display symbolic information appearing in the object file, executable file, or object-file library named by file. If no symbolic information is available for a valid input file, the nm utility shall report that fact, but not consider it an error condition.

The common usage:

nm lib.a

it will prints the names.

For more options, check the nm manual.

answered Sep 6, 2013 by anonymous

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost