Skip to content

Instantly share code, notes, and snippets.

@lirenlin
Last active March 10, 2020 08:46
Show Gist options
  • Save lirenlin/9760208 to your computer and use it in GitHub Desktop.
Save lirenlin/9760208 to your computer and use it in GitHub Desktop.
list function in static library or object file
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