[PATCH] D81404: [AArch64] Add clang command line support for -mharden-sls=

Kristof Beyls via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 8 08:17:16 PDT 2020


kristof.beyls created this revision.
kristof.beyls added a reviewer: ostannard.
Herald added subscribers: cfe-commits, danielkiss.
Herald added a project: clang.

The accepted options to -mharden-sls= are:

- all: enable all mitigations against Straight Line Speculation that are implemented.
- none: disable all mitigations against Straight Line Speculation.
- retbr: enable the mitigation against Straight Line Speculation for RET and BR instructions.
- blr: enable the mitigation against Straight Line Speculation for BLR instructions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81404

Files:
  clang/include/clang/Basic/DiagnosticDriverKinds.td
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/ToolChains/Arch/AArch64.cpp
  clang/test/Driver/aarch64-sls-hardening-options.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81404.269247.patch
Type: text/x-patch
Size: 5099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200608/91651227/attachment.bin>


More information about the cfe-commits mailing list