1 #include <TargetConditionals.h>
2 #include <mach/vm_param.h>
5 # define PTR(x) .quad x
7 # define PTR(x) .long x
10 // These offsets are populated by the dyld shared cache builder.
11 // They point to memory allocatd elsewhere in the shared cache.
13 .section __TEXT,__objc_opt_ro
15 .private_extern __objc_opt_data
17 .long 15 /* table.version */
18 .long 0 /* table.flags */
19 .long 0 /* table.selopt_offset */
20 .long 0 /* table.headeropt_ro_offset */
21 .long 0 /* table.clsopt_offset */
22 .long 0 /* table.protocolopt_offset */
23 .long 0 /* table.headeropt_rw_offset */
24 .space PAGE_MAX_SIZE-28
27 /* section of pointers that the shared cache optimizer wants to know about */
28 .section __DATA,__objc_opt_ptrs
31 #if TARGET_OS_OSX && __i386__
33 .globl .objc_class_name_Protocol
34 PTR(.objc_class_name_Protocol)
37 .globl _OBJC_CLASS_$_Protocol
38 PTR(_OBJC_CLASS_$_Protocol)