This patch drops the individual registration calls to the ObjC and Swift runtimes (for selectors, classes, etc.), and instead creates a Mach header and load commands that can be passed to _objc_map_images and _objc_load_images to trigger registration and execution of +load methods. This approach supports categories (for which there is no current registration API), and more closely follows dyld's ObjC & Swift registration path.
4.0 KiB
4.0 KiB