首页> 外国专利> Method and apparatus for loading an in-place executable file into a virtual machine

Method and apparatus for loading an in-place executable file into a virtual machine

机译:用于将就地可执行文件加载到虚拟机中的方法和装置

摘要

One embodiment of the present invention provides a system that facilitates loading of an in-place executable file into a virtual machine. The system operates by loading the in-place executable file into the virtual machine, where the in-place executable file contains internal pointers that point to memory locations within the in-place executable file, and a target memory address that specifies a target location in memory where the in-place executable file is configured to be loaded. The system then determines an actual memory address at which the in-place executable file is actually loaded. If the actual memory address and the target memory address are different, the system generates an offset value, which is the difference between the actual memory address and the target memory address. Finally, the system adjusts each internal pointer within the in-place executable file by the offset value so that the internal pointers point to intended locations inside the in-place executable file.
机译:本发明的一个实施例提供了一种有助于将就地可执行文件加载到虚拟机中的系统。该系统通过将就地可执行文件加载到虚拟机中进行操作,其中就地可执行文件包含指向就地可执行文件内的内存位置的内部指针,以及在其中指定目标位置的目标内存地址。配置为在其中加载就地可执行文件的内存。然后,系统确定实际加载就地可执行文件的实际内存地址。如果实际内存地址和目标内存地址不同,则系统会生成一个偏移值,即实际内存地址和目标内存地址之间的差值。最后,系统通过偏移值调整就地可执行文件内的每个内部指针,以使内部指针指向就地可执行文件内的预期位置。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号