[PATCH] D15699: [cfi] Cross-DSO CFI diagnostic mode (clang part)

Evgeniy Stepanov via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 21 13:06:05 PST 2015


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

- Runtime diagnostic data for cfi-icall changed to match the rest of cfi checks
- Layout of all CFI diagnostic data changed to put Kind at the beginning. There is no ABI stability promise yet.
- call __cfi_slowpath_diag instead of __cfi_slowpath when needed.
- emit __cfi_check_fail function, which dispatches a CFI check faliure according to trap/recover settings of the current module.
- a tiny driver change to match the way the new handlers are done in compiler-rt.

Repository:
  rL LLVM

http://reviews.llvm.org/D15699

Files:
  lib/CodeGen/CGClass.cpp
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CodeGenFunction.h
  lib/CodeGen/CodeGenModule.cpp
  lib/Driver/Tools.cpp
  test/CodeGen/cfi-check-fail.c
  test/CodeGen/cfi-icall-cross-dso.c
  test/CodeGenCXX/cfi-cross-dso.cpp
  test/CodeGenCXX/cfi-vcall.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15699.43394.patch
Type: text/x-patch
Size: 20810 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151221/e0c86b86/attachment-0001.bin>


More information about the cfe-commits mailing list