[PATCH] D15659: [cfi] Cross-DSO CFI diagnostic mode (compiler-rt part)

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 18 18:16:28 PST 2015


eugenis created this revision.
eugenis added reviewers: pcc, kcc.
eugenis added a subscriber: llvm-commits.
eugenis set the repository for this revision to rL LLVM.

* add __cfi_slowpath_diag with a 3rd parameter which 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.


Repository:
  rL LLVM

http://reviews.llvm.org/D15659

Files:
  lib/cfi/CMakeLists.txt
  lib/cfi/cfi.cc
  lib/ubsan/ubsan_handlers.cc
  lib/ubsan/ubsan_handlers.h
  lib/ubsan/ubsan_handlers_cxx.cc
  lib/ubsan/ubsan_handlers_cxx.h
  test/cfi/cross-dso/icall/diag.cpp
  test/cfi/cross-dso/icall/icall-from-dso.cpp
  test/cfi/cross-dso/icall/icall.cpp
  test/cfi/cross-dso/simple-fail.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15659.43290.patch
Type: text/x-patch
Size: 18072 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151219/6fc9fa6c/attachment.bin>


More information about the llvm-commits mailing list