[Windows]_[中級]_[使用命令列工具dumpbin分析檔案]

來源:互聯網
上載者:User

標籤:c++   dumpbin   匯出符號   32bit   64bit   


dumpbin(vs內建)

1. 匯出lib檔案的函數符號(symbols)

dumpbin /exports zlib1.lib

Microsoft (R) COFF/PE Dumper Version 10.00.40219.01Copyright (C) Microsoft Corporation.  All rights reserved.Dump of file zlib1.libFile 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

E:\software\TDM-GCC-64\bin>dumpbin /HEADERS libgcc_s_seh_64-1.dllMicrosoft (R) COFF/PE Dumper Version 10.00.40219.01Copyright (C) Microsoft Corporation.  All rights reserved.Dump of file libgcc_s_seh_64-1.dllPE signature foundFile Type: DLLFILE HEADER VALUES            8664 machine (x64)

32 bit
E:\software\TDM-GCC-64\bin>dumpbin /HEADERS g++.exeMicrosoft (R) COFF/PE Dumper Version 10.00.40219.01Copyright (C) Microsoft Corporation.  All rights reserved.Dump of file g++.exePE signature foundFile Type: EXECUTABLE IMAGEFILE HEADER VALUES             14C 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.dllMicrosoft (R) COFF/PE Dumper Version 10.00.40219.01Copyright (C) Microsoft Corporation.  All rights reserved.Dump of file libgcc_s_seh_64-1.dllFile 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分析檔案]

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.