[clang] [PAC] Implement function pointer re-signing (PR #98847)

Daniil Kovalev via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 15 06:48:42 PDT 2024


================
@@ -0,0 +1,55 @@
+// RUN: %clang_cc1 %s -triple arm64e-apple-ios13 -fptrauth-calls -fptrauth-intrinsics -emit-llvm -o-  -fptrauth-function-pointer-type-discrimination | FileCheck %s
----------------
kovdan01 wrote:

Nit: it would also be nice to have RUN lines against linux triples. I'm OK with adding that in a subsequent PR separately (probably by myself :) ). For example:

```
// RUN: %clang_cc1 %s -triple aarch64-linux-gnu  -fptrauth-calls -fptrauth-intrinsics -emit-llvm -o-  -fptrauth-function-pointer-type-discrimination | FileCheck %s
```

It'll require a slight change in CHECK-LABEL lines (for linux triple, we'll have dso_local). I'm happy to do such test enhancement by myself later, so feel free to ignore.

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


More information about the cfe-commits mailing list