]> git.saurik.com Git - apple/dyld.git/blobdiff - launch-cache/dyld_cache_format.h
dyld-353.2.3.tar.gz
[apple/dyld.git] / launch-cache / dyld_cache_format.h
index 70d897cb7e7f9ed165239e13a1934e8426872b6c..9407ff62e7d753a728662980ba729084a6c7be1d 100644 (file)
@@ -41,6 +41,9 @@ struct dyld_cache_header
        uint64_t        codeSignatureSize;              // size of code signature blob (zero means to end of file)
        uint64_t        slideInfoOffset;                // file offset of kernel slid info
        uint64_t        slideInfoSize;                  // size of kernel slid info
+       uint64_t        localSymbolsOffset;             // file offset of where local symbols are stored
+       uint64_t        localSymbolsSize;               // size of local symbols information
+       uint8_t         uuid[16];                               // unique value for each shared cache file
 };
 
 struct dyld_cache_mapping_info {
@@ -73,6 +76,24 @@ struct dyld_cache_slide_info
 };
 
 
+struct dyld_cache_local_symbols_info
+{
+       uint32_t        nlistOffset;            // offset into this chunk of nlist entries
+       uint32_t        nlistCount;                     // count of nlist entries
+       uint32_t        stringsOffset;          // offset into this chunk of string pool
+       uint32_t        stringsSize;            // byte count of string pool
+       uint32_t        entriesOffset;          // offset into this chunk of array of dyld_cache_local_symbols_entry 
+       uint32_t        entriesCount;           // number of elements in dyld_cache_local_symbols_entry array
+};
+
+struct dyld_cache_local_symbols_entry
+{
+       uint32_t        dylibOffset;            // offset in cache file of start of dylib
+       uint32_t        nlistStartIndex;        // start index of locals for this dylib
+       uint32_t        nlistCount;                     // number of local symbols for this dylib
+};
+
+
 
 #define MACOSX_DYLD_SHARED_CACHE_DIR   "/var/db/dyld/"
 #define IPHONE_DYLD_SHARED_CACHE_DIR   "/System/Library/Caches/com.apple.dyld/"