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
Release: 2024-12-17 17:26:24
Original
635 people have browsed it

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
Copy after login

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

nm -gDC yourLib.so
Copy after login

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

objdump:

objdump -TC libz.so
Copy after login

readelf:

readelf -Ws libz.so
Copy after login

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!

source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template