[clang] [llvm] [clang][llvm][AArch64] Set hardening fn attrs on synthetic functions (PR #211013)

Daniil Kovalev via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 31 04:09:23 PDT 2026


================
@@ -0,0 +1,14 @@
+; RUN: opt < %s -passes=asan -S | FileCheck %s
+; REQUIRES: aarch64-registered-target
+
+target triple = "aarch64-unknown-linux-gnu"
+
+!llvm.module.flags = !{!0, !1, !2, !3}
+
+!0 = !{i32 7, !"ptrauth-returns", i32 1}
+!1 = !{i32 7, !"ptrauth-auth-traps", i32 1}
+!2 = !{i32 7, !"ptrauth-indirect-gotos", i32 1}
+!3 = !{i32 7, !"aarch64-jump-table-hardening", i32 1}
----------------
kovdan01 wrote:

Thanks for suggestion! I've introduced use of split-test while keeping this in a separate file to avoid changes in existing tests

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


More information about the llvm-commits mailing list