[PATCH] D15358: CFI runtime library (cross-DSO support)

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 8 15:22:14 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.

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 couple of new, cross-DSO tests.

Repository:
  rL LLVM

http://reviews.llvm.org/D15358

Files:
  cmake/config-ix.cmake
  lib/cfi/CMakeLists.txt
  lib/cfi/cfi.cc
  test/cfi/cross-dso/icall/icall-from-dso.cpp
  test/cfi/cross-dso/icall/icall.cpp
  test/cfi/cross-dso/icall/lit.local.cfg
  test/cfi/cross-dso/lit.local.cfg
  test/cfi/cross-dso/simple-fail.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15358.42238.patch
Type: text/x-patch
Size: 14408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151208/47cf5f77/attachment.bin>


More information about the llvm-commits mailing list