1 #include <TargetConditionals.h>
2 #include <mach/vm_param.h>
7 # define PTR(x) .quad x@AUTH(da, 27361, addr)
9 # define PTR(x) .quad x
12 # define PTR(x) .long x
15 // These offsets are populated by the dyld shared cache builder.
16 // They point to memory allocatd elsewhere in the shared cache.
18 .section __TEXT,__objc_opt_ro
20 .private_extern __objc_opt_data
22 .long 15 /* table.version */
23 .long 0 /* table.flags */
24 .long 0 /* table.selopt_offset */
25 .long 0 /* table.headeropt_ro_offset */
26 .long 0 /* table.clsopt_offset */
27 .long 0 /* table.protocolopt_offset */
28 .long 0 /* table.headeropt_rw_offset */
29 .space PAGE_MAX_SIZE-28
32 /* section of pointers that the shared cache optimizer wants to know about */
33 .section __DATA,__objc_opt_ptrs
36 #if TARGET_OS_OSX && __i386__
38 .globl .objc_class_name_Protocol
39 PTR(.objc_class_name_Protocol)
42 .globl _OBJC_CLASS_$_Protocol
43 PTR(_OBJC_CLASS_$_Protocol)