dumpbin(vs拥有)
1. 出口lib函数符号文件(symbols)
dumpbin /exports zlib1.lib
Microsoft (R) COFF/PE Dumper Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.Dump of file zlib1.libFile Type: LIBRARYExportsordinal name1 _adler32@12140 _adler32_combine@1239 _compress2@202 _compress@1646 _compressBound@43 _crc32@12
2.查看PE文件是32 bit还是64 bit.
dumpbin /HEADERS libgcc_s_seh_64-1.dll
64 bit
E:\software\TDM-GCC-64\bin>dumpbin /HEADERS libgcc_s_seh_64-1.dll
Microsoft (R) COFF/PE Dumper Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.Dump of file libgcc_s_seh_64-1.dllPE signature foundFile Type: DLLFILE HEADER VALUES8664 machine (x64)
32 bit
E:\software\TDM-GCC-64\bin>dumpbin /HEADERS g++.exe
Microsoft (R) COFF/PE Dumper Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.Dump of file g++.exePE signature foundFile Type: EXECUTABLE IMAGEFILE HEADER VALUES14C machine (x86)
3.查看PE文件依赖,类似于Dependency Walker
dumpbin /DEPENDENTS libgcc_s_seh_64-1.dll
E:\software\TDM-GCC-64\bin>dumpbin /DEPENDENTS libgcc_s_seh_64-1.dll
Microsoft (R) COFF/PE Dumper Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.Dump of file libgcc_s_seh_64-1.dllFile Type: DLLImage has the following dependencies:KERNEL32.dllmsvcrt.dllSummary1000 .CRT1000 .bss1000 .data1000 .edata1000 .idata2000 .pdata2000 .rdata1000 .reloc16000 .text1000 .tls1000 .xdata