• Home
  • Raw
  • Download

Lines Matching refs:MachO

20   if (O.Header.FileType == MachO::HeaderFileType::MH_OBJECT)  in getStringTableBuilderKind()
21 return Is64Bit ? StringTableBuilder::MachO64 : StringTableBuilder::MachO; in getStringTableBuilderKind()
29 const MachO::macho_load_command &MLC = LC.MachOLoadCommand; in computeSizeOfCmds()
32 case MachO::LC_SEGMENT: in computeSizeOfCmds()
33 Size += sizeof(MachO::segment_command) + in computeSizeOfCmds()
34 sizeof(MachO::section) * LC.Sections.size(); in computeSizeOfCmds()
36 case MachO::LC_SEGMENT_64: in computeSizeOfCmds()
37 Size += sizeof(MachO::segment_command_64) + in computeSizeOfCmds()
38 sizeof(MachO::section_64) * LC.Sections.size(); in computeSizeOfCmds()
44 case MachO::LCName: \ in computeSizeOfCmds()
45 Size += sizeof(MachO::LCStruct) + LC.Payload.size(); \ in computeSizeOfCmds()
68 void MachOLayoutBuilder::updateDySymTab(MachO::macho_load_command &MLC) { in updateDySymTab()
69 assert(MLC.load_command_data.cmd == MachO::LC_DYSYMTAB); in updateDySymTab()
115 Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in layoutSegments()
117 O.Header.FileType == MachO::HeaderFileType::MH_OBJECT; in layoutSegments()
125 case MachO::LC_SEGMENT: in layoutSegments()
132 case MachO::LC_SEGMENT_64: in layoutSegments()
191 case MachO::LC_SEGMENT: in layoutSegments()
193 sizeof(MachO::segment_command) + in layoutSegments()
194 sizeof(MachO::section) * LC.Sections.size(); in layoutSegments()
200 case MachO::LC_SEGMENT_64: in layoutSegments()
202 sizeof(MachO::segment_command_64) + in layoutSegments()
203 sizeof(MachO::section_64) * LC.Sections.size(); in layoutSegments()
220 Offset += sizeof(MachO::any_relocation_info) * Sec->NReloc; in layoutRelocations()
233 Is64Bit ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in layoutTail()
234 assert((!(O.Header.FileType == MachO::HeaderFileType::MH_OBJECT) || in layoutTail()
243 uint64_t NListSize = Is64Bit ? sizeof(MachO::nlist_64) : sizeof(MachO::nlist); in layoutTail()
271 MachO::macho_load_command *MLC = LinkEditLoadCommand; in layoutTail()
273 case MachO::LC_SEGMENT: in layoutTail()
274 MLC->segment_command_data.cmdsize = sizeof(MachO::segment_command); in layoutTail()
279 case MachO::LC_SEGMENT_64: in layoutTail()
280 MLC->segment_command_64_data.cmdsize = sizeof(MachO::segment_command_64); in layoutTail()
292 case MachO::LC_CODE_SIGNATURE: in layoutTail()
296 case MachO::LC_SYMTAB: in layoutTail()
302 case MachO::LC_DYSYMTAB: { in layoutTail()
320 case MachO::LC_DATA_IN_CODE: in layoutTail()
324 case MachO::LC_FUNCTION_STARTS: in layoutTail()
328 case MachO::LC_DYLD_INFO: in layoutTail()
329 case MachO::LC_DYLD_INFO_ONLY: in layoutTail()
357 case MachO::LC_ENCRYPTION_INFO: in layoutTail()
358 case MachO::LC_ENCRYPTION_INFO_64: in layoutTail()
359 case MachO::LC_LOAD_DYLINKER: in layoutTail()
360 case MachO::LC_MAIN: in layoutTail()
361 case MachO::LC_RPATH: in layoutTail()
362 case MachO::LC_SEGMENT: in layoutTail()
363 case MachO::LC_SEGMENT_64: in layoutTail()
364 case MachO::LC_VERSION_MIN_MACOSX: in layoutTail()
365 case MachO::LC_VERSION_MIN_IPHONEOS: in layoutTail()
366 case MachO::LC_VERSION_MIN_TVOS: in layoutTail()
367 case MachO::LC_VERSION_MIN_WATCHOS: in layoutTail()
368 case MachO::LC_BUILD_VERSION: in layoutTail()
369 case MachO::LC_ID_DYLIB: in layoutTail()
370 case MachO::LC_LOAD_DYLIB: in layoutTail()
371 case MachO::LC_LOAD_WEAK_DYLIB: in layoutTail()
372 case MachO::LC_UUID: in layoutTail()
373 case MachO::LC_SOURCE_VERSION: in layoutTail()