lan*_*.io 1 executable debug-symbols portable-executable visual-studio visual-studio-2015
我使用 Visual Studio 2015 编译了一个普通的 exe。除了预期的类型 调试目录之外IMAGE_DEBUG_TYPE_CODEVIEW,我还发现了第二个类型IMAGE_DEBUG_TYPE_VC_FEATURE.
我找不到有关它包含哪些数据及其用途的信息。有人可以解释一下或向我指出解释它的来源吗?
当您使用 /GL 进行编译或链接时代码生成编译器晚于 vc 2010 时,会发出一个额外的调试目录,其中包含 vcfeature 这些存储一些 vc 110 之前的计数 /GS 计数 /sdl 计数和 GuardN 计数
dumpbin /headers 将显示此功能的详细信息 0xc
:\>dir /b
printf.cpp
:\>cat printf.cpp
#include <stdio.h>
void main (void) {
printf("%x\n%d\n%u\n%f\n%g\n%s\n%c\n",256,100,-1,2.2,45.87,"hi",97);
}
:\>cl /Zi /W4 /GL /Ox /analyze /nologo printf.cpp
printf.cpp
Generating code
Finished generating code
:\>dumpbin /headers printf.exe | grep -A 10 "Debug Directories"
Debug Directories
Time Type Size RVA Pointer
-------- ------- -------- -------- --------
5A7F2A78 cv 3C 0004529C 43E9C Format: RSDS, xxx59}, 1, printf.pdb
5A7F2A78 feat 14 000452D8 43ED8 Counts: Pre-VC++ 11.00=0, C/C++=194, /GS=194, /sd
l=0, guardN=193 <<<<<<<<<<<<<
5A7F2A78 coffgrp 28C 000452EC 43EEC 4C544347 (LTCG)
Run Code Online (Sandbox Code Playgroud)
对于初学者来说,这些都在 Windows 标头中定义
13 id == coffgrp 正如已经显示的那样,由 lint 时间代码生成创建
如果您执行增量链接/LINK /LTCG:INCRMENTAL,则会创建 14
这是一个虚拟调试目录
Debug Directories(4)
Type Size Address Pointer
cv 53 463cc 457cc
( 12) 14 46420 45820
( 13) 29c 46434 45834
( 14) 0 0 0
Run Code Online (Sandbox Code Playgroud)
dumpbin /标头 pogo_vcfeature.exe | grep -A 8“调试目录”
Debug Directories
Time Type Size RVA Pointer
-------- ------- -------- -------- --------
5AD58258 cv 53 000463CC 457CC
5AD58258 feat 14 00046420 45820
Counts: Pre-VC++ 11.00=0, C/C++=202, /GS=202, /sdl=0, guardN=201
5AD58258 coffgrp 29C 00046434 45834
4C544347 (LTCG)
5AD58258 iltcg 0 00000000 0
Run Code Online (Sandbox Code Playgroud)
窗口标题
:\>echo %cd%
C:\Program Files\Windows Kits\10\Include\10.0.16299.0
:\>grep -ir -B 12 -A 4 IMAGE_DEBUG_TYPE_VC_FEATURE *
xxxxxxxxxxxxxx
km/ntimage.h:#define IMAGE_DEBUG_TYPE_VC_FEATURE 12
km/ntimage.h-#define IMAGE_DEBUG_TYPE_POGO 13
km/ntimage.h-#define IMAGE_DEBUG_TYPE_ILTCG 14
km/ntimage.h-#define IMAGE_DEBUG_TYPE_MPX 15
km/ntimage.h-#define IMAGE_DEBUG_TYPE_REPRO 16
--
xxxxxxxxxxxxxxxxx
um/winnt.h:#define IMAGE_DEBUG_TYPE_VC_FEATURE 12
um/winnt.h-#define IMAGE_DEBUG_TYPE_POGO 13
um/winnt.h-#define IMAGE_DEBUG_TYPE_ILTCG 14
um/winnt.h-#define IMAGE_DEBUG_TYPE_MPX 15
um/winnt.h-#define IMAGE_DEBUG_TYPE_REPRO 16
:\>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2439 次 |
| 最近记录: |