[PATCH] D49383: [cfi-verify] Support cross-DSO
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 16 13:37:13 PDT 2018
pcc 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");
----------------
jgalenson wrote:
> eugenis wrote:
> > 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.
> Yes, I figured it was a common function that might get used instead of a trap instruction. I can remove it.
>
> I didn't add the diagnostic ones because I couldn't easily generate a test file using them and I didn't want to add them without a test.
I'd remove it since we shouldn't be trapping directly in cross-DSO mode, so even if a trap function is specified we shouldn't be emitting a call to it in connection with a CFI check.
https://reviews.llvm.org/D49383
More information about the llvm-commits
mailing list