[llvm] [BOLT][binary-analysis] Add initial pac-ret gadget scanner (PR #122304)

Jacob Bramley via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 03:46:20 PST 2025


================
@@ -0,0 +1,676 @@
+// RUN: %clang %cflags -march=armv8.3-a -mbranch-protection=pac-ret %s %p/../../Inputs/asm_main.c -o %t.exe
+// RUN: llvm-bolt-binary-analysis --scanners=pacret %t.exe 2>&1 | FileCheck -check-prefix=CHECK --allow-empty %s
+
+        .text
+
+        .globl  f1
+        .type   f1, at function
+f1:
+        hint    #25
----------------
jacobbramley wrote:

We use `autiasp` elsewhere, so can we write `paciasp` here?

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


More information about the llvm-commits mailing list