[clang] [llvm] [Clang][ARM][AArch64] Alway emit protection attributes for functions. (PR #82819)

Tomas Matheson via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 22 05:21:12 PDT 2024


================
@@ -22,4 +22,9 @@ attributes #1 = {
 ; CHECK: invalid value for 'sign-return-address-key' attribute: B_Key
   "sign-return-address-key"="B_Key"
 ; CHECK:   invalid value for 'branch-target-enforcement' attribute: True
-  "branch-target-enforcement"="True" }
+  "branch-target-enforcement"="True"
+; CHECK:   invalid value for 'branch-protection-pauth-lr' attribute: Yes
+  "branch-protection-pauth-lr"="Yes"
+; CHECK:   invalid value for 'guarded-control-stack' attribute: True
+  "guarded-control-stack"="True"
+  }
----------------
tmatheson-arm wrote:

I think you need a case for the "sign-return-address-key present without sign-return-address" check.

https://github.com/llvm/llvm-project/pull/82819


More information about the llvm-commits mailing list