Lines Matching refs:MachO
47 case MachO::LC_CODE_SIGNATURE: in updateLoadCommandIndexes()
50 case MachO::LC_SEGMENT: in updateLoadCommandIndexes()
55 case MachO::LC_SEGMENT_64: in updateLoadCommandIndexes()
60 case MachO::LC_SYMTAB: in updateLoadCommandIndexes()
63 case MachO::LC_DYSYMTAB: in updateLoadCommandIndexes()
66 case MachO::LC_DYLD_INFO: in updateLoadCommandIndexes()
67 case MachO::LC_DYLD_INFO_ONLY: in updateLoadCommandIndexes()
70 case MachO::LC_DATA_IN_CODE: in updateLoadCommandIndexes()
73 case MachO::LC_LINKER_OPTIMIZATION_HINT: in updateLoadCommandIndexes()
76 case MachO::LC_FUNCTION_STARTS: in updateLoadCommandIndexes()
79 case MachO::LC_DYLIB_CODE_SIGN_DRS: in updateLoadCommandIndexes()
82 case MachO::LC_DYLD_CHAINED_FIXUPS: in updateLoadCommandIndexes()
85 case MachO::LC_DYLD_EXPORTS_TRIE: in updateLoadCommandIndexes()
148 is64Bit() ? sizeof(MachO::mach_header_64) : sizeof(MachO::mach_header); in nextAvailableSegmentAddress()
151 const MachO::macho_load_command &MLC = LC.MachOLoadCommand; in nextAvailableSegmentAddress()
153 case MachO::LC_SEGMENT: in nextAvailableSegmentAddress()
158 case MachO::LC_SEGMENT_64: in nextAvailableSegmentAddress()
171 constructSegment(SegmentType &Seg, llvm::MachO::LoadCommandType CmdType, in constructSegment()
178 (MachO::VM_PROT_READ | MachO::VM_PROT_WRITE | MachO::VM_PROT_EXECUTE); in constructSegment()
180 (MachO::VM_PROT_READ | MachO::VM_PROT_WRITE | MachO::VM_PROT_EXECUTE); in constructSegment()
190 MachO::LC_SEGMENT_64, SegName, SegVMAddr, SegVMSize); in addSegment()
193 MachO::LC_SEGMENT, SegName, SegVMAddr, SegVMSize); in addSegment()
202 strnlen(SegName, sizeof(MachO::segment_command::segname))); in extractSegmentName()
206 const MachO::macho_load_command &MLC = MachOLoadCommand; in getSegmentName()
208 case MachO::LC_SEGMENT: in getSegmentName()
210 case MachO::LC_SEGMENT_64: in getSegmentName()
218 const MachO::macho_load_command &MLC = MachOLoadCommand; in getSegmentVMAddr()
220 case MachO::LC_SEGMENT: in getSegmentVMAddr()
222 case MachO::LC_SEGMENT_64: in getSegmentVMAddr()