简体   繁体   English

Dumpbin 输出,什么意思?

[英]Dumpbin output ,meaning?

If I do something like this:如果我做这样的事情:

dumpbin myexe.exe

I got output similar to:我得到的输出类似于:

Dump of file myexe.exe

File Type: EXECUTABLE IMAGE文件类型:可执行图像

Summary概括

   21000 .data
    1000 .gfids
  3C9000 .rdata
   4F000 .reloc
   B4000 .rsrc
  325000 .text
    1000 .tls

Second column (.data, .gfids, .rdata...) represents section name.第二列(.data、.gfids、.rdata...)代表节名称。 But what is first column?但什么是第一列? Section size?截面尺寸?

This value is actually the aligned section size.该值实际上是对齐的节大小。

If you do dumpbin /headers myexe.exe , you will get a more verbose output.如果您执行dumpbin /headers myexe.exe ,您将获得更详细的输出。 For example, dumpbin C:\\Windows\\explorer.exe on my system produces:例如,我系统上的dumpbin C:\\Windows\\explorer.exe生成:

Dump of file c:\Windows\explorer.exe

File Type: EXECUTABLE IMAGE

Summary

    4000 .data
    1000 .didat
    1000 .imrsiv
   18000 .pdata
   7B000 .rdata
    6000 .reloc
  1EA000 .rsrc
  1C5000 .text

dumpbin /headers C:\\Windows\\explorer.exe , contains the output for the .text section as follows (... = lines omitted): dumpbin /headers C:\\Windows\\explorer.exe包含.text部分的输出如下(... = 行省略):

...
SECTION HEADER #1
   .text name
  1C4737 virtual size
    1000 virtual address (0000000140001000 to 00000001401C5736)
  1C4800 size of raw data
     400 file pointer to raw data (00000400 to 001C4BFF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
60000020 flags
         Code
         Execute Read
...

It also gives 1000 section alignment in the OPTIONAL HEADER VALUES section.它还在OPTIONAL HEADER VALUES部分提供了1000 section alignment

As you can see, the size of the .text section is actually 1C4737 , when aligned, it becomes 1C5000 , as reported in the /summary (which is the default option for dumpbin).如您所见, .text部分的大小实际上是1C4737 ,当对齐时,它变为1C5000 ,如/summary (这是 dumpbin 的默认选项)中报告的那样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM