[Windows] _ [elementary] _ [use the command line tool dumpbin to analyze the file] and command line dumpbin

Source: Internet
Author: User

[Windows] _ [elementary] _ [use the command line tool dumpbin to analyze the file] and command line dumpbin


Dumpbin (vs built-in)

1. Export the function symbol (symbols) of the lib File)

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    _adler32@12           140    _adler32_combine@12            39    _compress2@20             2    _compress@16            46    _compressBound@4             3    _crc32@12

2. Check whether the PE file is 32 bit or 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. View PE file dependencies, similar to 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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.