dumpbin(vs自带)

1. 导出lib文件的函数符号(symbols)

dumpbin /exports zlib1.lib

[plain]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. Microsoft (R) COFF/PE Dumper Version 10.00.40219.01  
  2. Copyright (C) Microsoft Corporation.  All rights reserved.  
  3.   
  4.   
  5. Dump of file zlib1.lib  
  6.   
  7. File Type: LIBRARY  
  8.   
  9.      Exports  
  10.   
  11.        ordinal    name  
  12.   
  13.              1    _adler32@12  
  14.            140    _adler32_combine@12  
  15.             39    _compress2@20  
  16.              2    _compress@16  
  17.             46    _compressBound@4  
  18.              3    _crc32@12  

2.查看PE文件是32 bit还是64 bit.

dumpbin /HEADERS libgcc_s_seh_64-1.dll


64 bit

[plain]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. E:\software\TDM-GCC-64\bin>dumpbin /HEADERS libgcc_s_seh_64-1.dll  
  2. Microsoft (R) COFF/PE Dumper Version 10.00.40219.01  
  3. Copyright (C) Microsoft Corporation.  All rights reserved.  
  4.   
  5.   
  6. Dump of file libgcc_s_seh_64-1.dll  
  7.   
  8. PE signature found  
  9.   
  10. File Type: DLL  
  11.   
  12. FILE HEADER VALUES  
  13.             8664 machine (x64)  

32 bit
[plain]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. E:\software\TDM-GCC-64\bin>dumpbin /HEADERS g++.exe  
  2. Microsoft (R) COFF/PE Dumper Version 10.00.40219.01  
  3. Copyright (C) Microsoft Corporation.  All rights reserved.  
  4.   
  5.   
  6. Dump of file g++.exe  
  7.   
  8. PE signature found  
  9.   
  10. File Type: EXECUTABLE IMAGE  
  11.   
  12. FILE HEADER VALUES  
  13.              14C machine (x86)  


3.查看PE文件依赖,类似于Dependency Walker

dumpbin /DEPENDENTS libgcc_s_seh_64-1.dll

[plain]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. E:\software\TDM-GCC-64\bin>dumpbin /DEPENDENTS libgcc_s_seh_64-1.dll  
  2. Microsoft (R) COFF/PE Dumper Version 10.00.40219.01  
  3. Copyright (C) Microsoft Corporation.  All rights reserved.  
  4.   
  5.   
  6. Dump of file libgcc_s_seh_64-1.dll  
  7.   
  8. File Type: DLL  
  9.   
  10.   Image has the following dependencies:  
  11.   
  12.     KERNEL32.dll  
  13.     msvcrt.dll  
  14.   
  15.   Summary  
  16.   
  17.         1000 .CRT  
  18.         1000 .bss  
  19.         1000 .data  
  20.         1000 .edata  
  21.         1000 .idata  
  22.         2000 .pdata  
  23.         2000 .rdata  
  24.         1000 .reloc  
  25.        16000 .text  
  26.         1000 .tls  
  27.         1000 .xdata  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值