why do some Windows applications contain a relocation directory?

穿精又带淫゛_ 提交于 2019-12-11 10:34:51

问题


If my understanding of the Windows Portable Executable specification is correct, relocation tables are only needed when libraries cannot be loaded at their prefered addresses. Why do some applications (e.g. chrome.exe) contain a relocation table? Are applications not always loaded at their preferred addresses?


回答1:


It's for ASLR

AFAIK, current system loader don't relocate .exe files, maybe because it will increase loading time.
However, in next versions of OS, loader will relocate EXEs. (When hardware will be fast enough)



来源:https://stackoverflow.com/questions/8534858/why-do-some-windows-applications-contain-a-relocation-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!