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!