]> git.saurik.com Git - apple/objc4.git/blobdiff - runtime/objc-sel-table.s
objc4-818.2.tar.gz
[apple/objc4.git] / runtime / objc-sel-table.s
index 359df9be106c48302817707d700bdb2c599db8dd..3fb517a852f87aef3c125d8156830412a2c73ba0 100644 (file)
@@ -2,11 +2,19 @@
 #include <mach/vm_param.h>
 
 #if __LP64__
+#if __arm64e__
+// 0x6AE1
+# define PTR(x) .quad x@AUTH(da, 27361, addr)
+#else
 # define PTR(x) .quad x
+#endif
 #else
 # define PTR(x) .long x
 #endif
 
+// These offsets are populated by the dyld shared cache builder.
+// They point to memory allocatd elsewhere in the shared cache.
+
 .section __TEXT,__objc_opt_ro
 .align 3
 .private_extern __objc_opt_data
@@ -20,39 +28,6 @@ __objc_opt_data:
 .long 0 /* table.headeropt_rw_offset */
 .space PAGE_MAX_SIZE-28
 
-/* space for selopt, smax/capacity=524288, blen/mask=262143+1 */
-.space 262144    /* mask tab */
-.space 524288    /* checkbytes */
-.space 524288*4  /* offsets */
-
-/* space for clsopt, smax/capacity=65536, blen/mask=16383+1 */
-.space 16384            /* mask tab */
-.space 65536            /* checkbytes */
-.space 65536*12         /* offsets to name and class and header_info */
-.space PAGE_MAX_SIZE    /* some duplicate classes */
-
-/* space for protocolopt, smax/capacity=8192, blen/mask=4095+1 */
-.space 4096             /* mask tab */
-.space 8192             /* checkbytes */
-.space 8192*4           /* offsets */
-
-/* space for header_info (RO) structures */
-.space 16384
-
-.section __DATA,__objc_opt_rw
-.align 3
-.private_extern __objc_opt_rw_data
-__objc_opt_rw_data:
-/* space for header_info (RW) structures */
-.space 16384
-
-/* space for 8192 protocols */
-#if __LP64__
-.space 8192 * 11 * 8
-#else
-.space 8192 * 11 * 4
-#endif
-
 
 /* section of pointers that the shared cache optimizer wants to know about */
 .section __DATA,__objc_opt_ptrs