標籤:style blog http io ar os 使用 sp for
dumpbin(vs內建)
1. 匯出lib檔案的函數符號(symbols)
dumpbin /exports zlib1.lib
[plain] view plaincopy
- Microsoft (R) COFF/PE Dumper Version 10.00.40219.01
- Copyright (C) Microsoft Corporation. All rights reserved.
-
-
- Dump of file zlib1.lib
-
- File Type: LIBRARY
-
- Exports
-
- ordinal name
-
- 1 [email protected]
- 140 [email protected]
- 39 [email protected]
- 2 [email protected]
- 46 [email protected]
- 3 [email protected]
2.查看PE檔案是32 bit還是64 bit.
dumpbin /HEADERS libgcc_s_seh_64-1.dll
64 bit
[plain] view plaincopy
- 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.dll
-
- PE signature found
-
- File Type: DLL
-
- FILE HEADER VALUES
- 8664 machine (x64)
32 bit
[plain] view plaincopy
- 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++.exe
-
- PE signature found
-
- File Type: EXECUTABLE IMAGE
-
- FILE HEADER VALUES
- 14C machine (x86)
3.查看PE檔案依賴,類似於Dependency Walker
dumpbin /DEPENDENTS libgcc_s_seh_64-1.dll
[plain] view plaincopy
- 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.dll
-
- File Type: DLL
-
- Image has the following dependencies:
-
- KERNEL32.dll
- msvcrt.dll
-
- Summary
-
- 1000 .CRT
- 1000 .bss
- 1000 .data
- 1000 .edata
- 1000 .idata
- 2000 .pdata
- 2000 .rdata
- 1000 .reloc
- 16000 .text
- 1000 .tls
- 1000 .xdata
[Windows]_[中級]_[使用命令列工具dumpbin分析檔案]