Displaying 1 result from an estimated 1 matches for "__direct_method".
2020 Oct 12
2
[RFC] Analysis and runtime check of objc_direct/objc_non_runtime_protocol
...defined, e.g.
// struct _objc_direct_method {
// char *class_name;
// char *method_name
// }
Then each class will have a list of _objc_direct_method structs, which can
be put in a special section, e.g
constant [4 x %struct._objc_direct_method][//the list of the
structs],section "__DATA,__direct_method"
This special section for the link unit will have the combined information
for all TUs in this link unit. At runtime, the intercepted
resolveInstanceMethod and resolveClassMethod invocation can then read and
check against this section. If it finds the unresolved method is a direct
method, it...