Commit 61be7a92 authored by Ahmed Bougacha's avatar Ahmed Bougacha
Browse files

[clang] Define ptrauth_string_discriminator builtin.



This exposes the ABI-stable hash function that allows computing a 16-bit
discriminator from a constant string.

This allows manually matching the implicit string discriminators
computed in the ABI (e.g., from mangled names for vtable pointer/entry
signing), as well as enabling the use of interesting discriminators when
manually annotating specific pointers with the __ptrauth qualifier.

Co-Authored-By: default avatarJohn McCall <rjmccall@apple.com>
parent 42cb73fe
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment