commit | 0a3637d3eb2424d8e825ad1825f843450a888406 | [log] [tgz] |
---|---|---|
author | Evgenii Stepanov <eugenis@google.com> | Wed Jul 06 13:20:59 2016 -0700 |
committer | Evgenii Stepanov <eugenis@google.com> | Wed Jan 18 13:13:52 2017 -0800 |
tree | dc0d4c31cddc2ff06902fcbdf4233f7759258764 | |
parent | 1b2975d54b9c17ced29883aef24490773a4a9fe6 [diff] [blame] |
Runtime support for CFI Control Flow Integrity support in bionic. General design: http://clang.llvm.org/docs/ControlFlowIntegrityDesign.html#shared-library-support This CL implements subsections "CFI Shadow" and "CFI_SlowPath" in the above document. Bug: 22033465 Test: bionic device tests Change-Id: I14dfea630de468eb5620e7f55f92b1397ba06217
diff --git a/tests/libs/cfi_test_bad_lib.cpp b/tests/libs/cfi_test_bad_lib.cpp new file mode 100644 index 0000000..429c843 --- /dev/null +++ b/tests/libs/cfi_test_bad_lib.cpp
@@ -0,0 +1,4 @@ +// Mock an invalid CFI-enabled library. +__attribute__((aligned(4096))) extern "C" char dummy[16] = {}; +__asm__(".globl __cfi_check"); +__asm__("__cfi_check = dummy + 3"); // Not aligned to anything.