Home >Backend Development >C++ >How Can I List and Demangle Symbols in a .so File?

How Can I List and Demangle Symbols in a .so File?

Patricia Arquette
Patricia ArquetteOriginal
2024-12-17 17:26:24660browse

How Can I List and Demangle Symbols in a .so File?

Listing Symbols in a .so File

To list the symbols exported from a .so file, you can utilize the nm tool with the following command:

nm -gD yourLib.so

For demangling symbols in C libraries, include the "-C" option:

nm -gDC yourLib.so

For elf format .so files, you have the following options:

objdump:

objdump -TC libz.so

readelf:

readelf -Ws libz.so

The above is the detailed content of How Can I List and Demangle Symbols in a .so File?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn