arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.08419cs.CRcs.PL
收藏

确定性全静态二进制翻译无需启发法

Deterministic Fully-Static Whole-Binary Translation without Heuristics

University of California, Irvine(加州大学尔湾分校)

Hongyu Chen, James McGowan, Michael Franz

AI总结:

Elevator是首个无需调试信息、源代码或代码布局假设的x86-64完整二进制翻译器,通过静态翻译生成自包含二进制,提升可靠性与实用性。

摘要:

我们提出了Elevator,首个静态翻译完整x86-64可执行文件到AArch64的二进制翻译器,无需调试信息、源代码或代码布局假设。不同于现有系统依赖启发法或运行时回退处理代码-数据解码错误,Elevator考虑每字节的所有可能解释,提前生成每种可行解释的独立翻译。任何字节可被解释为数据、指令或指令参数;我们为所有解释生成独立的控制流路径,仅修剪导致异常终止的路径。翻译通过自动从高级源ISA描述中推导代码“瓷砖”进行组合,形成灵活的翻译框架。该方法确定性且生成完整自包含二进制,无运行时组件。主要成本是显著的代码大小膨胀。关键优势是输出实际运行代码,允许测试、验证、认证和加密签名,降低部署风险。我们对多样化的现实二进制进行了评估,包括整个SPECint 2006套件,证明静态完整程序二进制翻译既可靠又实用。Elevator性能与QEMU用户模式JIT仿真相当或更优。

英文摘要:

We present Elevator, the first binary translator that statically translates entire x86-64 executables to AArch64 without debug information, source code, or assumptions about code layout. Unlike existing systems, which rely on heuristics or runtime fallbacks to handle code-versus-data decoding errors, Elevator considers all possible interpretations of every byte and produces a separate translation for each feasible one ahead of time. Any byte may be interpreted as data, an opcode, or an opcode argument; we generate separate control flow paths for all interpretations, pruning only those leading to abnormal termination. Translations are built by composing code "tiles" automatically derived from a high-level description of the source ISA, yielding a nimble translation framework. The approach is deterministic and produces complete, self-contained binaries with no runtime component in the trusted code base. The principal cost is substantial code size expansion. The key benefit is that the output is the actual code that will run, enabling testing, validation, certification, and cryptographic signing prior to deployment, reducing risk compared to emulators or JIT compilers. We evaluate Elevator on a diverse corpus of real-world binaries, including the entire SPECint 2006 suite, demonstrating that static full-program binary translation can be both reliable and practical. Elevator achieves performance on par with or better than QEMU's user-mode JIT emulation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑