Last active
March 10, 2020 08:46
-
-
Save lirenlin/9760208 to your computer and use it in GitHub Desktop.
list function in static library or object file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
linux: | |
nm libelf.a | grep symbol | |
nm xxx.o | grep symbol | |
win32: | |
dumpbin/exports libelf.lib | grep symbol | |
dumpbin/symbols xxx.obj | grep symbol | |
dumpbin/symbols xxx.exe | grep symbol | |
dumpbin/all | |
library export def | |
-rdynamic | |
Pass the flag -export-dynamic to the ELF linker, | |
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Using_ld_the_GNU_Linker/win32.html | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment