Giter Site home page Giter Site logo

libs2e's Introduction

Building and Running libs2e

  1. Build S2E as usual

    make -f ../s2e/Makefile all-release all-debug
    
  2. Build qemu from https://github.com/S2E/qemu (You will need to use this qemu further)

    git clone https://github.com/S2E/qemu
    mkdir s2e-qemu-build
    cd s2e-qemu-build
    ../s2e-qemu/configure --enable-debug --disable-werror --target-list="i386-softmmu x86_64-softmmu" --disable-docs
    make
    export QEMU_BUILD=/path/to/qemu-build
    
  3. Run libs2e in non-S2E mode

    LD_PRELOAD=${S2E_BUILD}/libs2e-release/x86_64-softmmu/libs2e.so \
        ${QEMU_BUILD}/x86_64-softmmu/qemu-system-x86_64 -drive file=windows7.raw.s2e,cache=writeback,format=s2e -m 2G -enable-kvm
    
  4. Run libs2e in S2E mode

    export S2E_CONFIG=s2e-config.lua
    export S2E_SHARED_DIR=${S2E_BUILD}/libs2e-release/x86_64-s2e-softmmu/
    
    LD_PRELOAD=${S2E_BUILD}/libs2e-release/x86_64-s2e-softmmu/libs2e.so \
        ${QEMU_BUILD}/x86_64-softmmu/qemu-system-x86_64 -drive file=windows7.raw.s2e,cache=writeback,format=s2e -m 2G -enable-kvm -net none -loadvm ready
    

libs2e's People

Contributors

vitaly-cyberhaven avatar vitalych avatar adrianherrera avatar linbin0107 avatar

Watchers

James Cloos avatar

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.