Skip to content

wuwen03/CDMF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDMF:A Cross-ISA Data Morphing Framework to enable library ABI compatibility in static binary translation

we propose CDMF, a Cross-ISA Data Morphing Framework that automates the analysis pipeline to detect ISA-specific composite discrepancies in third party libraries and introduces an auto-fix methodology to achieve cross-ISA ABI compatibility.

Building from source code

  1. build and install the llvm and its subproject clang [https://github.com/llvm/llvm-project.git]
  2. build the CDMF
    make all

Example: glibc

We will illustrate how to get the result shown in paper in this section.

  1. install a tool to generate compile_commands.json from Makefile, for example bear
    apt install -y bear
  1. since the host platform is x86, we should prepare cross-compile toolchain of other platforms(aarch64, riscv in this example)
  2. run the script pipeline.sh in directory example. After it has finished successfully, it will generate composite AST database and composite diff database
  3. run shell script src/AffactedFunction/run.sh, it will detect diff composite

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages