Git Product home page Git Product logo

Comments (4)

artemdinaburg avatar artemdinaburg commented on April 28, 2024

Hi,

That command just builds the binary file. Look deeper into the demo examples (e.g.: https://github.com/trailofbits/mcsema/blob/master/mc-sema/tests/x86_64/demo1.sh):

${BIN_DESCEND_PATH}/bin_descend -march=x86-64 -d -entry-symbol=start -i=demo_test1.o: will recover the CFG from demo_test1.o and save it into demo_test1.cfg

${CFG_TO_BC_PATH}/cfg_to_bc -mtriple=x86_64-pc-linux-gnu -i demo_test1.cfg -driver=demo1_entry,start,raw,return,C -o demo_test1.bc will take the CFG, demo_test1.cfg, and output a LLVM bitcode into demo_test1.bc.

from mcsema.

mudongliang avatar mudongliang commented on April 28, 2024

I have read the content of demo1.sh.
At first, it compiles assembly file to object file with nasm, and then use bin_descend and cfg_to_bc to get the llvm IR bitcode file.
So the original source of demos is object file, not executable file.
As is known to all , object file and executable file are different. What I have now is binary file , not object file.
Besides,why did the author put assembly file in the demo , other than object file ? Maybe for cross-platform.

from mcsema.

artemdinaburg avatar artemdinaburg commented on April 28, 2024

The example in https://github.com/trailofbits/mcsema/blob/master/mc-sema/tests/linked_elf_test.sh shows how to lift a fully linked ELF executable.

from mcsema.

mudongliang avatar mudongliang commented on April 28, 2024

Thank you!

from mcsema.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.