[llvm] [BOLT] Gadget scanner: detect non-protected indirect calls (PR #131899)
Jacob Bramley via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 26 07:12:37 PDT 2025
================
@@ -0,0 +1,676 @@
+// RUN: %clang %cflags -march=armv8.3-a %s -o %t.exe
+// RUN: llvm-bolt-binary-analysis --scanners=pacret %t.exe 2>&1 | FileCheck %s
----------------
jacobbramley wrote:
Are there any future-compatibility concerns with the `--scanners` option? If so, I'd suggest that "everything PAuth-related" is potentially ambiguous, for example if we have some data-PAC usage at some point, or if there are some A/B key restrictions. I wonder if `pauth-abi`, `pauthtest` (to match `-mabi`) or `pauth-inst` (since this scanner is fairly general) might be better. That said, perhaps `pauth` will always be a useful catch-all option, and in that case we can extend this later as required.
https://github.com/llvm/llvm-project/pull/131899
More information about the llvm-commits
mailing list