gpt4 book ai didi

c - dll 的 dumpbin 输出中的 "virtual address"

转载 作者:太空宇宙 更新时间:2023-11-03 23:53:23 24 4
gpt4 key购买 nike

1)在 dll 的 dumpbin 输出中,我在代码部分看到下面的属性“虚拟地址”

第 1 节标题

.文本名称

100C virtual size
1000 virtual address (1C001000 to 1C00200B)
1200 size of raw data
400 file pointer to raw data (00000400 to 000015FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers

60000020 个标志

      Code

Execute Read

scn2

scn1

2)屏幕截图 Scn2.png(附件)是 scn1.png(附件)的左侧部分。

我的问题是,上面的属性虚拟地址范围(1C001000 到 1C00200B)是否只是屏幕截图(附上)中红圈中的偏移量(有效地址)?

最佳答案

通常,从技术上讲(对于可移植可执行文件规范而言),Virtual Address 属性是 Section 在 MEMORY 中相对于将要加载图像的 ImageBase 的偏移量(这也是一个取决于 ASLR 的点) .

有些工具,例如 dumpin,会自动计算结果并显示添加到镜像库后产生的虚拟地址。在这种情况下,是的,你是对的,“范围只是偏移量(有效地址)”!

关于c - dll 的 dumpbin 输出中的 "virtual address",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14342284/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com