[llvm-branch-commits] [clang] [clang] Define ptrauth_sign_constant builtin. (PR #93904)
Daniil Kovalev via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jun 19 15:01:52 PDT 2024
================
@@ -354,6 +354,23 @@ Given that ``signedPointer`` matches the layout for signed pointers signed with
the given key, extract the raw pointer from it. This operation does not trap
and cannot fail, even if the pointer is not validly signed.
+``ptrauth_sign_constant``
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. code-block:: c
+
+ ptrauth_sign_constant(pointer, key, discriminator)
+
+Return a signed pointer for a constant address in a manner which guarantees
+a non-attackable sequence.
----------------
kovdan01 wrote:
Thanks, now I see that. Are you going to submit documentation changes all at once as a separate PR? If it's not too time-consuming, I'd prefer having all related terms defined as a part of this PR (particularly, at least the part "Attackable code sequences"), but I'm OK with submitting documentation changes separately.
https://github.com/llvm/llvm-project/pull/93904
More information about the llvm-branch-commits
mailing list