计算机工程与应用 ›› 2008, Vol. 44 ›› Issue (22): 59-61.DOI: 10.3778/j.issn.1002-8331.2008.22.017

• 理论研究 • 上一篇    下一篇

静态二进制翻译中动态地址解析恢复技术研究

丁松阳1,2,赵荣彩1,崔平非1   

  1. 1.解放军信息工程学院 计算机科学与技术系,郑州 450002
    2.河南财经学院 计算机科学系,郑州 450002
  • 收稿日期:2007-10-10 修回日期:2008-01-21 出版日期:2008-07-11 发布日期:2008-07-11
  • 通讯作者: 丁松阳

Recovery of dynamic address resolving for static binary translation

DING Song-yang1,2,ZHAO Rong-cai1,CUI Ping-fei1   

  1. 1.Dept. of Computer Science and Technology,Information Engineering College of PLA,Zhengzhou 450002,China
    2.Dept. of Computer Science and Technology,Henan University of Finance and Economics,Zhengzhou 450002,China
  • Received:2007-10-10 Revised:2008-01-21 Online:2008-07-11 Published:2008-07-11
  • Contact: DING Song-yang

摘要: 静态二进制翻译的入口点通常为main函数,所以main函数执行之前的动态地址解析部分就无法在目标机上恢复。通过分析基于ELF文件的动态地址解析机制,提出了在目标代码中插入代码模拟动态地址解析的方法来解决该问题。该方法已在静态二进制翻译项目中实现,测试结果表明该方法是有效的。

关键词: 静态二进制翻译, ELF文件, 动态地址解析

Abstract: The entry pointer of static binary translation generally is the function of main,so the dynamic address resolving before program loading can’t be recovered.Based on the analysis of ELF dynamic address resolving mechanism,this paper puts forward a method to simulate dynamic address resolving by inserting codes into the target program.This method has been implemented in the project of static binary translation,experimental results demonstrate that it is efficient.

Key words: static binary translation, ELF file, dynamic address resolving