[Runtime] Use ptrauth qualifiers on metadata and superclass fields.

This commit is contained in:
Mike Ash
2021-04-09 15:16:15 -04:00
parent 9200dde6b6
commit 3da4d20081
5 changed files with 27 additions and 9 deletions

View File

@@ -250,6 +250,9 @@ extern uintptr_t __COMPATIBILITY_LIBRARIES_CANNOT_CHECK_THE_IS_SWIFT_BIT_DIRECTL
#define __ptrauth_swift_dispatch_invoke_function \
__ptrauth(ptrauth_key_process_independent_code, 1, \
SpecialPointerAuthDiscriminators::DispatchInvokeFunction)
#define __ptrauth_swift_objc_superclass \
__ptrauth(ptrauth_key_process_independent_data, 1, \
swift::SpecialPointerAuthDiscriminators::ObjCSuperclass)
#define swift_ptrauth_sign_opaque_read_resume_function(__fn, __buffer) \
ptrauth_auth_and_resign(__fn, ptrauth_key_function_pointer, 0, \
ptrauth_key_process_independent_code, \
@@ -276,6 +279,7 @@ extern uintptr_t __COMPATIBILITY_LIBRARIES_CANNOT_CHECK_THE_IS_SWIFT_BIT_DIRECTL
#define __ptrauth_swift_cancellation_notification_function
#define __ptrauth_swift_escalation_notification_function
#define __ptrauth_swift_dispatch_invoke_function
#define __ptrauth_swift_objc_superclass
#define __ptrauth_swift_runtime_function_entry
#define __ptrauth_swift_runtime_function_entry_with_key(__key)
#define __ptrauth_swift_runtime_function_entry_strip(__fn) (__fn)