[clang] [Clang][AArch64] Command-line options for A-profile's Sign Return Address Hardening (PR #176171)
Victor Campos via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 16 05:08:53 PDT 2026
================
@@ -3403,6 +3384,11 @@ def err_invalid_branch_protection_spec : Error<
"invalid or misplaced branch protection specification '%0'">;
def warn_unsupported_branch_protection_spec : Warning<
"unsupported branch protection specification '%0'">, InGroup<BranchProtection>;
+def warn_attribute_harden_pac_ret_requires_pac_ret: Warning<
+ "'harden-pac-ret' attribute requires 'branch-protection=pac-ret'; 'target' attribute ignored">,
+ InGroup<IgnoredAttributes>;
+def err_invalid_harden_pac_ret_spec : Error<
+ "invalid or misplaced pac-ret hardening specification '%0'">;
----------------
vhscampos wrote:
Good catch. Fixed
https://github.com/llvm/llvm-project/pull/176171
More information about the cfe-commits
mailing list