Coder Social home page Coder Social logo

xiaofan6033 / llvm-cfi Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 54.3 MB

CMake 0.33% Makefile 0.34% Shell 0.12% M4 0.09% C++ 76.49% Go 0.12% OCaml 0.36% Python 0.90% Batchfile 0.02% Roff 0.03% C 7.76% Pawn 0.01% Objective-C 3.95% Assembly 7.11% HTML 1.01% CSS 0.01% Objective-C++ 1.27% MATLAB 0.04% Mercury 0.01% Cuda 0.04%

llvm-cfi's Introduction

LLVM-CFI

Installation

  1. get the llvm gold plugin and follow the installation instructions: https://llvm.org/docs/GoldPlugin.html
  2. install ld.gold to /usr/bin/ld.gold
  3. compile LLVM-CFI with -DLLVM_BINUTILS_INCDIR=/path/to/binutils/include
  4. set environment variables:
    export PREFIX="/path/to/built/reckon"
    export CC="$PREFIX/bin/clang -flto -femit-vtbl-checks"
    export CXX="$PREFIX/bin/clang++ -flto -femit-vtbl-checks"
    export AR="$PREFIX/bin/ar"
    export NM="$PREFIX/bin/nm-new"
    export RANLIB=/bin/true
    export LDFLAGS="-fuse-ld=gold -Wl,-plugin-opt=sd-return"

Usage

Compile any project with LLVM-CFI. If autotooled, make sure that the C/C++ compilers and flags outlined above are used. LLVM-CFI will generate folders called "SDOutput" which contains the analysis results. The folders are created in the directory the linker was called in. Use

    find . -type d -name "SDOutput"

to find the data.

llvm-cfi's People

Contributors

gokhankici avatar mattneumayer avatar dagonfry avatar w0xel avatar teamvault avatar richardviehoever avatar

Stargazers

 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.