[llvm-branch-commits] [clang] [clang] Implement function pointer signing and authenticated function calls (PR #93906)
Daniil Kovalev via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jun 17 08:01:14 PDT 2024
================
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -triple arm64e-apple-ios -fptrauth-calls %s -verify -emit-llvm -o -
+
+void f(void);
+
+int *pf = (int *)&f + 1; // expected-error{{cannot compile this static initializer yet}}
----------------
kovdan01 wrote:
Feel free to ignore: it's probably worth having a more specific error message here. It's not actually obvious why we are erroring out - is this because signing function pointers with non-zero offsets is not supported? Even if we leave this error message as is, it's probably worth at least having a comment here (and in clang/test/CodeGen/ptrauth-function-init.c as wel)
https://github.com/llvm/llvm-project/pull/93906
More information about the llvm-branch-commits
mailing list