Diablo is a retargetable link-time binary rewriting framework
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
annotations Synchronized with privatetrunk up to r12522. Sep 14, 2017
anopt Synchronized with privatetrunk up to r12760. Apr 24, 2018
aspire Synchronized with privatetrunk up to r12760. Apr 24, 2018
cmake Synchronized with privatetrunk up to r12760. Apr 24, 2018
diversity Synchronized with privatetrunk up to r12760. Apr 24, 2018
documentation Synchronized with privatetrunk up to r12760. Apr 24, 2018
flowgraph Synchronized with privatetrunk up to r12760. Apr 24, 2018
frontends Synchronized with privatetrunk up to r12601. Oct 31, 2017
jansson-2.6 Initial public commit of Diablo 0.9 Oct 12, 2016
judy Synchronized with privatetrunk up to r12506. Aug 29, 2017
obfuscation Synchronized with privatetrunk up to r12760. Apr 24, 2018
object Synchronized with privatetrunk up to r12760. Apr 24, 2018
scripts Initial public commit of Diablo 0.9 Oct 12, 2016
self-profiling Synchronized with privatetrunk up to r12601. Oct 31, 2017
smc Synchronized with privatetrunk up to r12760. Apr 24, 2018
support Synchronized with privatetrunk up to r12760. Apr 24, 2018
.gitignore Initial public commit of Diablo 0.9 Oct 12, 2016
.hgignore Initial public commit of Diablo 0.9 Oct 12, 2016
ACKNOWLEDGEMENTS Initial public commit of Diablo 0.9 Oct 12, 2016
AUTHORS Synchronized with privatetrunk up to r12613. Nov 8, 2017
CMakeLists.txt Synchronized with privatetrunk up to r12760. Apr 24, 2018
COPYING Initial public commit of Diablo 0.9 Oct 12, 2016
Compaction.cmake Synchronized with privatetrunk up to r12389. Apr 18, 2017
INSTALL.DIABLO Synchronized with privatetrunk up to r12760. Apr 24, 2018
README Synchronized with privatetrunk up to r12760. Apr 24, 2018
build_obj.sh Synchronized with privatetrunk up to r12613. Nov 8, 2017

README

Diablo (Diablo Is A Better Link-time Optimizer) is a retargetable link-time
binary rewriting framework. While our focus has been mostly on program
compaction and software protection, binary rewriting has a much broader range of
applications: speed optimizations, power consumption optimizations, size
optimizations, watermarking, instrumentation, etc.

A good binary rewriting framework (one like Diablo :-)) is also very useful for
program analysis and understanding. For instance, Diablo can print out the
control flow graph for all functions in a program, annotated with for example
liveness information.

Lately Diablo has been used in the ASPIRE project to develop a number of
software protection techniques, the code of which can be found in the aspire
subdirectory.

Diablo is licensed under the GPLv2 license:

    Copyright (C) 2016  The Diablo Team

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

The full license can be found in the COPYING file.

Diablo furthermore links against (and this repository contains their code for the ease of building Diablo):
* Judy for sparse dynamic arrays (in the judy/ subdirectory)
* Jansson for working with JSON data (in the jansson-2.6 subdirectory)
which each is copyrighted by their respective authors, and each fall under their own licenses as mentioned in their respective headers and LICENSE file.

The easiest way to get Diablo compiled and running, including having a
pre-built ARM toolchain, is by using a Docker image we developed for the Aspire
FP7 project. It can be found on Github
(https://github.com/aspire-fp7/framework). Note that this Docker contains more
than just Diablo: it features the entire Aspire protection tool chain, of which
Diablo is just a part.