[all-commits] [llvm/llvm-project] b80357: [PowerPC] Add option for ROP Protection

stefanp-ibm via All-commits all-commits at lists.llvm.org
Thu Feb 18 04:21:56 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b80357d46e229ace904a8580e0a93e3f9b91720b
      https://github.com/llvm/llvm-project/commit/b80357d46e229ace904a8580e0a93e3f9b91720b
  Author: Stefan Pintilie <stefanp at ca.ibm.com>
  Date:   2021-02-18 (Thu, 18 Feb 2021)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Basic/Targets/PPC.cpp
    M clang/lib/Basic/Targets/PPC.h
    A clang/test/Driver/ppc-mrop-protection-support-check.c
    M clang/test/Preprocessor/init-ppc64.c
    M llvm/lib/Target/PowerPC/PPC.td
    M llvm/lib/Target/PowerPC/PPCSubtarget.cpp
    M llvm/lib/Target/PowerPC/PPCSubtarget.h
    M llvm/test/CodeGen/PowerPC/future-check-features.ll

  Log Message:
  -----------
  [PowerPC] Add option for ROP Protection

Added -mrop-protection for Power PC to turn on codegen that provides some
protection from ROP attacks.

The option is off by default and can be turned on for Power 8, Power 9 and
Power 10.

This patch is for the option only. The feature will be implemented by a later
patch.

Reviewed By: amyk

Differential Revision: https://reviews.llvm.org/D96512




More information about the All-commits mailing list