Skip to content

Commit

Permalink
chore: remove a few more iOS18 TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Oct 9, 2024
1 parent 202ab4a commit 13aef32
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions hack/extras/Dyld.bt
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ typedef struct
uint64 cacheAtlasSize; // size of embedded cache atlas
uint64 dynamicDataOffset; // VM offset from cache_header* to the location of dyld_cache_dynamic_data_header
uint64 dynamicDataMaxSize; // maximum size of space reserved from dynamic dataz
uint32 tProMappingOffset; // file offset to TPRO mappings NEW in iOS 18.0 beta1 (hi mrmacete :P)
uint32 tProMappingCount; // TPRO mappings count NEW in iOS 18.0 beta1 (is 1 for now)
uint32 tProMappingOffset; // file offset to first dyld_cache_tpro_mapping_info
uint32 tProMappingCount; // number of dyld_cache_tpro_mapping_info entries
} dyld_cache_header;

typedef struct
Expand Down
8 changes: 4 additions & 4 deletions hack/extras/PBL.bt
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ typedef struct
uint16 hasReadOnlyObjC : 1; // Has __DATA_CONST,__objc_selrefs section
uint16 pre2022Binary : 1;
uint16 isPremapped : 1; // mapped by exclave core
uint16 isVersion2 : 1; // FIXME: when dyld src is out for iOS 18.0/macOS 15.0
uint16 unknown1 : 1; // FIXME: when dyld src is out for iOS 18.0/macOS 15.0
uint16 unknown2 : 1; // FIXME: when dyld src is out for iOS 18.0/macOS 15.0
uint16 unknown3 : 1; // FIXME: when dyld src is out for iOS 18.0/macOS 15.0
uint16 hasUUIDLoadCommand : 1;
uint16 hasWeakDefs : 1;
uint16 hasTLVs : 1;
uint16 belowLibSystem : 1;
uint16 padding : 2;
LoaderRef ref;
} PBLLoader;
Expand Down
2 changes: 1 addition & 1 deletion pkg/dyld/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ func (f *File) parseCache(r io.ReaderAt, uuid mtypes.UUID) error {
sr.Seek(int64(f.Headers[uuid].TPROMappingsOffset), io.SeekStart)
f.TPROMappings = make([]TPROMapping, f.Headers[uuid].TPROMappingsCount)
if err := binary.Read(sr, f.ByteOrder, f.TPROMappings); err != nil {
return fmt.Errorf("failed to read DSC TPRO mappings (new in iOS18.0beta1): %v", err)
return fmt.Errorf("failed to read DSC TPRO mappings (new in iOS18.0): %v", err)
}
}

Expand Down

0 comments on commit 13aef32

Please sign in to comment.