summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/cfi/cross-dso/simple-fail.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [cfi] Use %ld_flags_rpath_* substitutions in tests (NFC)Evgeniy Stepanov2017-10-131-34/+34
| | | | llvm-svn: 315775
* [cfi] Cross-DSO CFI diagnostic mode (compiler-rt part)Evgeniy Stepanov2016-01-251-0/+9
| | | | | | | | | | | | | | | * add __cfi_slowpath_diag with a 3rd parameter which is a pointer to the diagnostic info for the ubsan handlers. *__cfi_check gets a 3rd parameter as well. * unify vcall/cast/etc and icall diagnostic info format, and merge the handlers to have a single entry point (actually two points due to abort/noabort variants). * tests Note that this comes with a tiny overhead in the non-diag mode: cfi_slowpath must pass 0 as the 3rd argument to cfi_check. llvm-svn: 258744
* [cfi] Fix handling of uninstrumented libraries.Evgeniy Stepanov2015-12-221-0/+5
| | | | | | CFI shadow for non-CFI libraries should be "unchecked", not "invalid". llvm-svn: 256285
* Cross-DSO control flow integrity (compiler-rt part).Evgeniy Stepanov2015-12-151-0/+87
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
OpenPOWER on IntegriCloud