[PATCH] D158614: [UBSan] Disable the function sanitizer on an execute-only target.

Ying Yi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 25 01:40:50 PDT 2023


MaggieYi updated this revision to Diff 553409.
MaggieYi edited the summary of this revision.
MaggieYi added a comment.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

The changes include:

1. Added an ARM::supportedExecuteOnly function to avoid the duplicated code.
2. Modified the `isExecuteOnlyTarget` function to only deal with the `-mexecute-only` option.
3. Added `SanitizerKind::KCFI` to the SanitizerMask of NotAllowedWithExecuteOnly.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158614/new/

https://reviews.llvm.org/D158614

Files:
  clang/include/clang/Basic/DiagnosticCommonKinds.td
  clang/include/clang/Basic/Sanitizers.h
  clang/lib/Basic/CMakeLists.txt
  clang/lib/Basic/Sanitizers.cpp
  clang/lib/Driver/SanitizerArgs.cpp
  clang/lib/Driver/ToolChains/Arch/ARM.cpp
  clang/test/CodeGenObjCXX/crash-function-type.mm
  clang/test/Driver/fsanitize.c
  llvm/include/llvm/TargetParser/ARMTargetParser.h
  llvm/lib/TargetParser/ARMTargetParser.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158614.553409.patch
Type: text/x-patch
Size: 10476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230825/499df2fe/attachment-0001.bin>


More information about the cfe-commits mailing list