llvm-6502/include/llvm
JF Bastien 21befa7761 Insert random noops to increase security against ROP attacks (llvm)
A pass that adds random noops to X86 binaries to introduce diversity with the goal of increasing security against most return-oriented programming attacks.

Command line options:
  -noop-insertion // Enable noop insertion.
  -noop-insertion-percentage=X // X% of assembly instructions will have a noop prepended (default: 50%, requires -noop-insertion)
  -max-noops-per-instruction=X // Randomly generate X noops per instruction. ie. roll the dice X times with probability set above (default: 1). This doesn't guarantee X noop instructions.

In addition, the following 'quick switch' in clang enables basic diversity using default settings (currently: noop insertion and schedule randomization; it is intended to be extended in the future).
  -fdiversify

This is the llvm part of the patch.
clang part: D3393

http://reviews.llvm.org/D3392
Patch by Stephen Crane (@rinon)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225908 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-14 01:07:26 +00:00
..
ADT [ADT] Remove the unused default constructor for iterator_range. 2015-01-11 01:16:26 +00:00
Analysis Revert r225854: [PM] Move the LazyCallGraph printing functionality to 2015-01-14 00:27:45 +00:00
AsmParser
Bitcode AsmParser/Bitcode: Add support for MDLocation 2015-01-13 21:10:44 +00:00
CodeGen Insert random noops to increase security against ROP attacks (llvm) 2015-01-14 01:07:26 +00:00
Config [multilib] Add support to the autoconf build to substitute 2014-12-29 11:58:17 +00:00
DebugInfo [DebugInfo] Move all DWARF headers to the public include directory. 2014-12-19 18:26:33 +00:00
ExecutionEngine
IR [PM] Push the debug option for the new pass manager into the opt tool 2015-01-13 22:42:38 +00:00
IRReader
LineEditor
Linker Use the DiagnosticHandler to print diagnostics when reading bitcode. 2015-01-10 00:07:30 +00:00
LTO
MC Migrate ABIName to MCTargetOptions so that it can be shared between 2015-01-14 00:50:31 +00:00
Object Add the option, -universal-headers, used with -macho to print the Mach-O universal headers to llvm-objdump. 2015-01-09 19:22:37 +00:00
Option
ProfileData
Support Insert random noops to increase security against ROP attacks (llvm) 2015-01-14 01:07:26 +00:00
TableGen
Target Insert random noops to increase security against ROP attacks (llvm) 2015-01-14 01:07:26 +00:00
Transforms [SimplifyLibCalls] Don't try to simplify indirect calls. 2015-01-14 00:55:05 +00:00
CMakeLists.txt
InitializePasses.h Insert random noops to increase security against ROP attacks (llvm) 2015-01-14 01:07:26 +00:00
LinkAllIR.h
LinkAllPasses.h
module.modulemap
module.modulemap.build
Pass.h
PassAnalysisSupport.h
PassInfo.h
PassManager.h
PassRegistry.h
PassSupport.h