作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (06): 89-91. doi: 10.3969/j.issn.1000-3428.2007.06.031

• 软件技术与数据库 • 上一篇    下一篇

基于加载机制分析的ELF文件main函数定位技术

齐 宁,丁松阳,孙维新,赵荣彩   

  1. (解放军信息工程大学信息工程学院,郑州 450002)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-03-20 发布日期:2007-03-20

Addressing Technology of ELF File’s main Entry Point Based on Loading Mechanism Analysis

QI Ning, DING Songyang, SUN Weixin, ZHAO Rongcai   

  1. (School of Information Engineering, PLA Information Engineering University, Zhengzhou 450002)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-03-20 Published:2007-03-20

摘要: 当前二进制翻译中通用的main函数定位方法依赖于符号表,随着strip工具的普遍应用,二进制可执行文件中往往不存在符号表。该文描述了strip工具的应用目的,分析了其应用对二进制翻译的影响,基于ELF文件加载机制的分析,提出了一种新的main函数定位技术,通过对IA-32及IA-64下ELF格式二进制文件的翻译,证明该技术是有效的。

关键词: 二进制翻译, 符号表, ELF, Strip

Abstract: Nowadays, the common method of addressing the entry point of main relies on symbol table. With the widely use of strip utility, the binary file does not contain symbol table anymore. The paper describes the purpose of strip utility first, then analyzes the effects of using strip on binary translation, basing on the analysis of ELF loading mechanism, puts forward a new technique to addressing main entry point. The technique is proved to be effective by the translation of ELF binary files in IA-32 and IA-64.

Key words: Binary translation, Symbol table, ELF, Strip

中图分类号: