From 12a0d97849b2faa2e09643b34396f10a335fc9fd Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Tue, 20 Mar 2018 15:01:12 +0000 Subject: [PATCH] Add protocol references in the loader. These are currently ignored, because they are only important when the runtime has upgraded the protocol. The runtime will upgrade legacy protocols, but they are not referenced by this indirection layer. --- loader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loader.c b/loader.c index 4b772e2..3402883 100644 --- a/loader.c +++ b/loader.c @@ -105,6 +105,8 @@ struct objc_init struct objc_category *cat_end; struct objc_protocol2 *proto_begin; struct objc_protocol2 *proto_end; + struct objc_protocol2 **proto_ref_begin; + struct objc_protocol2 **proto_ref_end; }; // end: objc_init #include