hanchenye-llvm-project/compiler-rt/test/cfi
Evgeniy Stepanov da1cf9287c Cross-DSO control flow integrity (compiler-rt part).
This is an initial version of the runtime cross-DSO CFI support
library.

It contains a number of FIXMEs, ex. it does not support the
diagnostic mode nor dlopen/dlclose, but it works and can be tested.
Diagnostic mode, in particular, would require some refactoring (we'd
like to gather all CFI hooks in the UBSan library into one function
so that we could easier pass the diagnostic information down to
__cfi_check). It will be implemented later.

Once the diagnostic mode is in, I plan to create a second test
configuration to run all existing tests in both modes. For now, this
patch includes only a few new cross-DSO tests.

llvm-svn: 255695
2015-12-15 23:00:33 +00:00
..
cross-dso Cross-DSO control flow integrity (compiler-rt part). 2015-12-15 23:00:33 +00:00
icall CFI: Run the tests only on supported architectures/OSs. 2015-09-10 19:18:08 +00:00
CMakeLists.txt Cross-DSO control flow integrity (compiler-rt part). 2015-12-15 23:00:33 +00:00
README.txt Add tests for non-virtual call checking. 2015-04-02 00:33:36 +00:00
anon-namespace.cpp CFI: Update tests for various bit vector sizes following lowerbitsets optzns. 2015-07-29 18:12:45 +00:00
bad-cast.cpp CFI: Update tests for various bit vector sizes following lowerbitsets optzns. 2015-07-29 18:12:45 +00:00
base-derived-destructor.cpp CFI: try to make test/cfi/base-derived-destructor.cpp pass on Windows 2015-11-09 14:25:08 +00:00
create-derivers.test CFI: Update tests for various bit vector sizes following lowerbitsets optzns. 2015-07-29 18:12:45 +00:00
lit.cfg Cross-DSO control flow integrity (compiler-rt part). 2015-12-15 23:00:33 +00:00
lit.site.cfg.in
multiple-inheritance.cpp CFI: Update tests for various bit vector sizes following lowerbitsets optzns. 2015-07-29 18:12:45 +00:00
nvcall.cpp CFI: Update tests for various bit vector sizes following lowerbitsets optzns. 2015-07-29 18:12:45 +00:00
overwrite.cpp CFI: Update tests for various bit vector sizes following lowerbitsets optzns. 2015-07-29 18:12:45 +00:00
sibling.cpp CFI: Update tests for various bit vector sizes following lowerbitsets optzns. 2015-07-29 18:12:45 +00:00
simple-fail.cpp CFI: Update tests for various bit vector sizes following lowerbitsets optzns. 2015-07-29 18:12:45 +00:00
simple-pass.cpp Add tests for non-virtual call checking. 2015-04-02 00:33:36 +00:00
utils.h CFI: Update tests for various bit vector sizes following lowerbitsets optzns. 2015-07-29 18:12:45 +00:00
vdtor.cpp CFI: Update tests for various bit vector sizes following lowerbitsets optzns. 2015-07-29 18:12:45 +00:00

README.txt

The tests in this directory use a common convention for exercising the
functionality associated with bit sets of different sizes. When certain
macros are defined the tests instantiate classes that force the bit sets
to be of certain sizes.

- B32 forces 32-bit bit sets.
- B64 forces 64-bit bit sets.
- BM forces memory bit sets.