繁体   English   中英

Dumpbin 输出,什么意思?

[英]Dumpbin output ,meaning?

如果我做这样的事情:

dumpbin myexe.exe

我得到的输出类似于:

Dump of file myexe.exe

文件类型:可执行图像

概括

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

第二列(.data、.gfids、.rdata...)代表节名称。 但什么是第一列? 截面尺寸?

该值实际上是对齐的节大小。

如果您执行dumpbin /headers myexe.exe ,您将获得更详细的输出。 例如,我系统上的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包含.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
...

它还在OPTIONAL HEADER VALUES部分提供了1000 section alignment

如您所见, .text部分的大小实际上是1C4737 ,当对齐时,它变为1C5000 ,如/summary (这是 dumpbin 的默认选项)中报告的那样。

暂无
暂无

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

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