gpt4 book ai didi

windows - 什么是图像基础(在 Windows PE 文件中)

转载 作者:行者123 更新时间:2023-12-03 11:08:22 24 4
gpt4 key购买 nike

我在MSDN上阅读了关于PE格式的文档,其中规定:

The preferred address of the first byte of image when loaded into memory; must be a multiple of 64 K. The default for DLLs is 0x10000000. The default for Windows CE EXEs is 0x00010000. The default for Windows NT, Windows 2000, Windows XP, Windows 95, Windows 98, and Windows Me is 0x00400000

这个我不是很明白。什么是“首选地址”? Windows 在创建新进程/加载可执行文件时如何使用该字段?

最佳答案

它是虚拟内存中的地址,可执行文件应加载到该地址,以避免在代码中对绝对跳转指令进行任何调整。操作系统可能会将模块加载到不同的地址(例如,同一程序所需的 2 个 DLL 具有相同的镜像基址),但在这种情况下,代码需要在加载时进行修补。

有关详细信息,请参阅 https://msdn.microsoft.com/en-us/library/ms809762.aspx (在那里搜索 ImageBase)。

关于windows - 什么是图像基础(在 Windows PE 文件中),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53655287/

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