Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2007, Vol. 33 ›› Issue (24): 49-51. doi: 10.3969/j.issn.1000-3428.2007.24.017

• Software Technology and Database • Previous Articles     Next Articles

Recovery Technology of Indirect Procedure Call to Dynamic Linking Library Function in Static Binary Translation

DING Song-yang1,2, ZHAO Rong-cai1   

  1. 1. Department of Computer Science and Technology, Information Engineering College of PLA, Zhengzhou 450002; 2. Department of Computer Science and Technology, Finance and Economy College of Henan, Zhengzhou 450002
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-12-20 Published:2007-12-20

二进制翻译中间接调用动态链接库恢复技术

丁松阳1,2,赵荣彩1   

  1. 1. 解放军信息工程学院计算机科学与技术系,郑州 450002;2. 河南财经学院计算机科学系,郑州 450002

Abstract: Aiming at the static binary translation of using C language as backend, this paper puts forward a technique to recover indirect call to dynamic linking library functions that uses pseudo addresses to subtitle the addresses of dynamic linking library functions and construct a table to mapping pseudo addresses with the addresses of dynamic linking library functions at the target machine. The target program obtains the target procedure address based on the source pseudo address by codes plugging into the target program, it uses the searching result to call the dynamic library function.

Key words: static binary translation, indirect procedure call, dynamic library

摘要: 针对使用C后端的静态二进制翻译框架,提出了间接调用动态链接库函数恢复方法。该方法使用伪地址来代替需要动态解析的动态链接库函数的地址,在后端构建了伪地址与目标机上动态链接库函数地址的对应表,在后端C代码生成过程中插入根据伪地址获得动态链接库函数地址的查表代码,使用查表得到的库函数地址恢复对于动态链接库函数的间接调用。

关键词: 静态二进制翻译, 间接过程调用, 动态库

CLC Number: