Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Conrad <david_conrad@apple.com>2022-06-08 01:17:27 +0300
committerMartin Storsjö <martin@martin.st>2022-07-14 00:33:38 +0300
commit6dc03eee53df62c1fb82a735f70a1b2b16d26bf0 (patch)
treed2506f234d3fac83d827b9182dd5cbbc1cae12b4
parentd503bb0ccaf104b2f13da0f092e09cc9411b3297 (diff)
Enable pointer authentication in assembly when building arm64e
-rw-r--r--src/arm/asm.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arm/asm.S b/src/arm/asm.S
index d1083c6..dc50415 100644
--- a/src/arm/asm.S
+++ b/src/arm/asm.S
@@ -135,6 +135,12 @@
#endif
#define GNU_PROPERTY_AARCH64_PAC (1 << 1)
+#elif defined(__APPLE__) && defined(__arm64e__)
+
+#define GNU_PROPERTY_AARCH64_PAC 0
+#define AARCH64_SIGN_LINK_REGISTER pacibsp
+#define AARCH64_VALIDATE_LINK_REGISTER autibsp
+
#else /* __ARM_FEATURE_PAC_DEFAULT */
#define GNU_PROPERTY_AARCH64_PAC 0