为何装载机无法将货物装载到所需位置 [英] Why won't the loader load at the desired location

查看:71
本文介绍了为何装载机无法将货物装载到所需位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据说,有时加载程序会将exe加载到与链接程序所假定的地址不同的地址.装载程序这样做可能是什么情况?

It is said that sometimes the loader loads the exe at an address which is different than the one assumed by the linker. What all could be the cases when loader does so??

推荐答案

基本上,在以下情况下会发生这种情况:

Basically, this takes place in the following situations:

  1. 首选加载图像的地址已被占用.例如,可能已经有另一张图像加载了.
  2. 要加载的图像已在启用 ASLR 的情况下进行编译.
  3. FLG_LDR_TOP_DOWN 设置了全局标志,该标志强制将模块加载到可能的最高地址.
  1. The address at which the image prefers to be loaded is already occupied. For example, there may be another image already loaded there.
  2. The image to be loaded has been compiled with ASLR enabled.
  3. The FLG_LDR_TOP_DOWN global flag has been set, which forces modules to be loaded at the highest possible address.

这篇关于为何装载机无法将货物装载到所需位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆