[PATCH] D51429: [AArch64] Return Address Signing B Key Support

Luke Cheeseman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 1 06:54:15 PDT 2018


LukeCheeseman updated this revision to Diff 167723.
LukeCheeseman added a comment.

- Introduce the -mbranch-protection option. This is to be used for both pointer authentication and branch protection security features.
  - The branch protection compiler support will follow later
- The options available are -mbranch-protection=<type>(+<type>)* where <type> ::= [bti,pac-ret[+leaf,b-key]*]
- This should be the primary way of using branch protection features and the -msign-return-address option should be deprecated
- Remove the b-key selection from the earlier patch for -msign-return-address


https://reviews.llvm.org/D51429

Files:
  include/clang/Basic/DiagnosticDriverKinds.td
  include/clang/Driver/CC1Options.td
  include/clang/Driver/Options.td
  include/clang/Frontend/CodeGenOptions.def
  include/clang/Frontend/CodeGenOptions.h
  lib/CodeGen/CGDeclCXX.cpp
  lib/CodeGen/TargetInfo.cpp
  lib/Driver/ToolChains/Clang.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGen/aarch64-sign-return-address.c
  test/CodeGenCXX/aarch64-sign-return-address-static-ctor.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51429.167723.patch
Type: text/x-patch
Size: 12870 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181001/9d3f4277/attachment-0001.bin>


More information about the cfe-commits mailing list