[PATCH] D49383: [cfi-verify] Support cross-DSO by treating certain calls as traps.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 25 13:55:30 PDT 2018


eugenis added inline comments.


================
Comment at: tools/llvm-cfi-verify/lib/FileAnalysis.cpp:539
+  TrapOnFailFunctions.insert("__cfi_slowpath");
+  TrapOnFailFunctions.insert("abort");
+  TrapOnFailFunctions.insert("__cfi_slowpath at plt");
----------------
pcc wrote:
> Where does `abort` come from? In the diagnostic mode the failure path will end up calling `__ubsan_handle_cfi_check_fail` or `__ubsan_handle_cfi_check_fail_abort`.
I think it comes from a combination of -fsanitize-trap and -ftrap-function=abort.


https://reviews.llvm.org/D49383





More information about the llvm-commits mailing list